Package gov.nih.mipav.model.algorithms
Class AlgorithmEdgeDetection3D
java.lang.Object
java.lang.Thread
gov.nih.mipav.model.algorithms.AlgorithmBase
gov.nih.mipav.model.algorithms.AlgorithmEdgeDetection3D
- All Implemented Interfaces:
ActionListener,WindowListener,Runnable,EventListener
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate doubleprivate doubleprivate doubleprivate double[][][]private double[][][]private double[][][]private double[][][]private doubleprivate booleanprivate intprivate intprivate intprivate double[][][]private double[][][](package private) doubleFields inherited from class gov.nih.mipav.model.algorithms.AlgorithmBase
destFlag, destImage, image25D, mask, maxProgressValue, minProgressValue, multiThreadingEnabled, nthreads, progress, progressModulus, progressStep, runningInSeparateThread, separable, srcImage, threadStoppedFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionAlgorithmEdgeDetection3D - default constructor.AlgorithmEdgeDetection3D(ModelImage destImg, ModelImage srcImg, double dx, double dy, double dz, int nx, int ny, int nz, double L, double threshold, boolean componentsRequired, boolean anglesRequired, boolean magnitudeRequired) AlgorithmEdgeDetection3D. -
Method Summary
Methods inherited from class gov.nih.mipav.model.algorithms.AlgorithmBase
actionPerformed, addListener, addProgressChangeListener, calculateImageSize, calculatePrincipleAxis, computeElapsedTime, computeElapsedTime, convertIntoFloat, delinkProgressToAlgorithm, delinkProgressToAlgorithmMulti, displayError, errorCleanUp, fireProgressStateChanged, fireProgressStateChanged, fireProgressStateChanged, fireProgressStateChanged, fireProgressStateChanged, generateProgressValues, getDestImage, getElapsedTime, getMask, getMaxProgressValue, getMinProgressValue, getNumberOfThreads, getProgress, getProgressChangeListener, getProgressChangeListeners, getProgressModulus, getProgressStep, getProgressValues, getSrcImage, isCompleted, isImage25D, isMultiThreadingEnabled, isRunningInSeparateThread, isThreadStopped, linkProgressToAlgorithm, linkProgressToAlgorithm, makeProgress, notifyListeners, removeListener, removeProgressChangeListener, run, setCompleted, setImage25D, setMask, setMaxProgressValue, setMinProgressValue, setMultiThreadingEnabled, setNumberOfThreads, setProgress, setProgressModulus, setProgressStep, setProgressValues, setProgressValues, setRunningInSeparateThread, setSrcImage, setStartTime, setThreadStopped, startMethod, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpenedMethods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Field Details
-
dx
private double dx -
dy
private double dy -
dz
private double dz -
nx
private int nx -
ny
private int ny -
nz
private int nz -
L
private double L -
threshold
double threshold -
componentsRequired
private boolean componentsRequired -
anglesRequired
private boolean anglesRequired -
magnitudeRequired
private boolean magnitudeRequired -
FX
private double[][][] FX -
FY
private double[][][] FY -
FZ
private double[][][] FZ -
thetaMAX
private double[][][] thetaMAX -
phiMAX
private double[][][] phiMAX -
FMAX
private double[][][] FMAX
-
-
Constructor Details
-
AlgorithmEdgeDetection3D
public AlgorithmEdgeDetection3D()AlgorithmEdgeDetection3D - default constructor. -
AlgorithmEdgeDetection3D
public AlgorithmEdgeDetection3D(ModelImage destImg, ModelImage srcImg, double dx, double dy, double dz, int nx, int ny, int nz, double L, double threshold, boolean componentsRequired, boolean anglesRequired, boolean magnitudeRequired) AlgorithmEdgeDetection3D.- Parameters:
destImg- destination imagesrcImg- source imagedx- x length of the prism over which the data is integrateddy- y length of the prism over which the data is integrateddz- z length of the prism over which the data is integratednx- mask x dimensionny- mask y dimensionnz- mask z dimensionL- Neighborhood size for the directional gradient averagingthreshold- (FMAX/largestFMAX) must be >= threshold to be made an edgecomponentsRequired- If true, keep FX, FY, and FZ arrays.anglesRequired- If true, keep thetaMAX and phiMAX arrays.magnitudeRequired- If true, keep FMAX array.
-
-
Method Details
-
finalize
public void finalize()finalize -- Overrides:
finalizein classAlgorithmBase
-
runAlgorithm
public void runAlgorithm()Starts the program.- Specified by:
runAlgorithmin classAlgorithmBase
-
getXComponent
public double[][][] getXComponent() -
getYComponent
public double[][][] getYComponent() -
getZComponent
public double[][][] getZComponent() -
getTheta
public double[][][] getTheta() -
getPhi
public double[][][] getPhi() -
getMagnitude
public double[][][] getMagnitude()
-