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:
java.awt.event.ActionListener
,java.awt.event.WindowListener
,java.lang.Runnable
,java.util.EventListener
public class AlgorithmEdgeDetection3D extends AlgorithmBase
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
anglesRequired
private boolean
componentsRequired
private double
dx
private double
dy
private double
dz
private double[][][]
FMAX
private double[][][]
FX
private double[][][]
FY
private double[][][]
FZ
private double
L
private boolean
magnitudeRequired
private int
nx
private int
ny
private int
nz
private double[][][]
phiMAX
private double[][][]
thetaMAX
(package private) double
threshold
-
Fields inherited from class gov.nih.mipav.model.algorithms.AlgorithmBase
destFlag, destImage, image25D, mask, maxProgressValue, minProgressValue, multiThreadingEnabled, nthreads, progress, progressModulus, progressStep, runningInSeparateThread, separable, srcImage, threadStopped
-
-
Constructor Summary
Constructors Constructor Description AlgorithmEdgeDetection3D()
AlgorithmEdgeDetection3D - 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finalize()
finalize -double[][][]
getMagnitude()
double[][][]
getPhi()
double[][][]
getTheta()
double[][][]
getXComponent()
double[][][]
getYComponent()
double[][][]
getZComponent()
void
runAlgorithm()
Starts the program.-
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, windowOpened
-
Methods 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, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
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 Detail
-
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 Detail
-
finalize
public void finalize()
finalize -- Overrides:
finalize
in classAlgorithmBase
-
runAlgorithm
public void runAlgorithm()
Starts the program.- Specified by:
runAlgorithm
in 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()
-
-