Package gov.nih.mipav.model.algorithms
Class AlgorithmDualContourSearch
- java.lang.Object
-
- java.lang.Thread
-
- gov.nih.mipav.model.algorithms.AlgorithmBase
-
- gov.nih.mipav.model.algorithms.AlgorithmDualContourSearch
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.awt.event.WindowListener,java.lang.Runnable,java.util.EventListener
public class AlgorithmDualContourSearch extends AlgorithmBase
-
-
Field Summary
Fields Modifier and Type Field Description private intcontourPointsprivate double[]GxDataStorage location of the first derivative of the Gaussian in the X direction.private double[]GyDataStorage location of the first derivative of the Gaussian in the Y direction.private intinnerIndexprivate int[]kExtentsDimensionality of the kernel.private intlinePointsprivate intouterIndexprivate intpixelsContractprivate intpixelsExpandprivate doubleregularizationprivate VOIresultVOIprivate double[]sigmasStandard deviations of the gaussian used to calculate the kernels.-
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 AlgorithmDualContourSearch(ModelImage srcImg, int innerIndex, int outerIndex, int contourPoints, int linePoints, double regularization, double[] sigmas, int pixelsContract, int pixelsExpand)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidgenerateTestImage()VOIgetResultVOI()Accessor that returns the resultant VOI.private voidmakeKernels2D()Makes derivative kernels to be used in the calculation of the gradient magnitude.voidrun2D()voidrun3D()voidrunAlgorithm()Actually runs the algorithm.-
Methods inherited from class gov.nih.mipav.model.algorithms.AlgorithmBase
actionPerformed, addListener, addProgressChangeListener, calculateImageSize, calculatePrincipleAxis, computeElapsedTime, computeElapsedTime, convertIntoFloat, delinkProgressToAlgorithm, delinkProgressToAlgorithmMulti, displayError, errorCleanUp, finalize, 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
-
innerIndex
private int innerIndex
-
outerIndex
private int outerIndex
-
contourPoints
private int contourPoints
-
linePoints
private int linePoints
-
regularization
private double regularization
-
resultVOI
private VOI resultVOI
-
GxData
private double[] GxData
Storage location of the first derivative of the Gaussian in the X direction.
-
GyData
private double[] GyData
Storage location of the first derivative of the Gaussian in the Y direction.
-
kExtents
private int[] kExtents
Dimensionality of the kernel.
-
sigmas
private double[] sigmas
Standard deviations of the gaussian used to calculate the kernels.
-
pixelsContract
private int pixelsContract
-
pixelsExpand
private int pixelsExpand
-
-
Constructor Detail
-
AlgorithmDualContourSearch
public AlgorithmDualContourSearch(ModelImage srcImg, int innerIndex, int outerIndex, int contourPoints, int linePoints, double regularization, double[] sigmas, int pixelsContract, int pixelsExpand)
-
-
Method Detail
-
runAlgorithm
public void runAlgorithm()
Description copied from class:AlgorithmBaseActually runs the algorithm. Implemented by inheriting algorithms.- Specified by:
runAlgorithmin classAlgorithmBase
-
getResultVOI
public VOI getResultVOI()
Accessor that returns the resultant VOI.- Returns:
- resultant VOI that has localized to the boundaries of the object
-
run2D
public void run2D()
-
run3D
public void run3D()
-
makeKernels2D
private void makeKernels2D()
Makes derivative kernels to be used in the calculation of the gradient magnitude.
-
generateTestImage
private void generateTestImage()
-
-