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:
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 intprivate double[]Storage location of the first derivative of the Gaussian in the X direction.private double[]Storage location of the first derivative of the Gaussian in the Y direction.private intprivate int[]Dimensionality of the kernel.private intprivate intprivate intprivate intprivate doubleprivate VOIprivate double[]Standard 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, threadStoppedFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionAlgorithmDualContourSearch(ModelImage srcImg, int innerIndex, int outerIndex, int contourPoints, int linePoints, double regularization, double[] sigmas, int pixelsContract, int pixelsExpand) -
Method Summary
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, 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
-
innerIndex
private int innerIndex -
outerIndex
private int outerIndex -
contourPoints
private int contourPoints -
linePoints
private int linePoints -
regularization
private double regularization -
resultVOI
-
GxData
private double[] GxDataStorage location of the first derivative of the Gaussian in the X direction. -
GyData
private double[] GyDataStorage location of the first derivative of the Gaussian in the Y direction. -
kExtents
private int[] kExtentsDimensionality of the kernel. -
sigmas
private double[] sigmasStandard deviations of the gaussian used to calculate the kernels. -
pixelsContract
private int pixelsContract -
pixelsExpand
private int pixelsExpand
-
-
Constructor Details
-
AlgorithmDualContourSearch
public AlgorithmDualContourSearch(ModelImage srcImg, int innerIndex, int outerIndex, int contourPoints, int linePoints, double regularization, double[] sigmas, int pixelsContract, int pixelsExpand)
-
-
Method Details
-
runAlgorithm
public void runAlgorithm()Description copied from class:AlgorithmBaseActually runs the algorithm. Implemented by inheriting algorithms.- Specified by:
runAlgorithmin classAlgorithmBase
-
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()
-