Class AlgorithmFastMarching
java.lang.Object
java.lang.Thread
gov.nih.mipav.model.algorithms.AlgorithmBase
gov.nih.mipav.model.algorithms.levelset.AlgorithmFastMarching
- All Implemented Interfaces:
ActionListener,WindowListener,Runnable,EventListener
DOCUMENT ME!
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanCalculate per-slice:private booleanDOCUMENT ME!private booleanDOCUMENT ME!private floatThe advection coefficient 'a' in the PDE that controls the evolution.private floatThe curvature coefficient 'c' in the PDE that controls the evolution.private floatThe scale to use in computing the blurred gradient magnitude of the curvature flow image.private floatThe Laplacian coefficient 'd' in the PDE that controls the evolution.private floatThe maximum distance to allow when computing the signed distance transform.private floatThe propagation coefficient 'b' in the PDE that controls the evolution.private floatThe parameters for the sigmoid function through which the blurred gradient magnitude image is processed.private floatThe parameters for the sigmoid function through which the blurred gradient magnitude image is processed.private floatThe parameters for the sigmoid function through which the blurred gradient magnitude image is processed.private floatThe parameters for the sigmoid function through which the blurred gradient magnitude image is processed.private intThe number of iterations to use in the nonlinear diffusion (curvature flow filter) applied to the input image.private intType of level set diffusion filter to apply.private intNumber of coarse iterationsprivate intNumber of evolution iterationsprivate intprivate static final longUse serialVersionUID for interoperability.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
ConstructorsConstructorDescriptionAlgorithmFastMarching(ModelImage _image) Creates a new ViewJFrameFastMarching3 object.AlgorithmFastMarching(ModelImage _image, int iFilterType, int iIters, float fGMScale, float fSAlpha, float fSBeta, float fSMin, float fSMax, int iCoarseMax, float fMaxDistance, float fAdvectionWeight, float fPropagationWeight, float fCurvatureWeight, float fLaplacianWeight, int iEvolveMax, boolean bImage25D) Creates a new AlgorithmFastMarching3 object. -
Method Summary
Modifier and TypeMethodDescriptionprivate voidDrawEvolve2D(LseSegmenter kSegmenter) DOCUMENT ME!private voidDrawEvolve3D(LseSegmenter kSegmenter) DOCUMENT ME!private voidDrawFastMarch2D(LseSegmenter kSegmenter) DOCUMENT ME!private voidDrawFastMarch3D(LseSegmenter kSegmenter) DOCUMENT ME!voidActually runs the algorithm.private voidvoidvoidMethods 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
-
serialVersionUID
private static final long serialVersionUIDUse serialVersionUID for interoperability.- See Also:
-
m_bIterate
private boolean m_bIterateDOCUMENT ME! -
m_bNext
private boolean m_bNextDOCUMENT ME! -
m_iFilterType
private int m_iFilterTypeType of level set diffusion filter to apply. -
m_iDiffusionIterations
private int m_iDiffusionIterationsThe number of iterations to use in the nonlinear diffusion (curvature flow filter) applied to the input image. -
m_fGradientMagnitudeScale
private float m_fGradientMagnitudeScaleThe scale to use in computing the blurred gradient magnitude of the curvature flow image. -
m_fSigmoidAlpha
private float m_fSigmoidAlphaThe parameters for the sigmoid function through which the blurred gradient magnitude image is processed. The variance of the function. -
m_fSigmoidBeta
private float m_fSigmoidBetaThe parameters for the sigmoid function through which the blurred gradient magnitude image is processed. The center of the function. -
m_fSigmoidMin
private float m_fSigmoidMinThe parameters for the sigmoid function through which the blurred gradient magnitude image is processed. The minimum of the function. -
m_fSigmoidMax
private float m_fSigmoidMaxThe parameters for the sigmoid function through which the blurred gradient magnitude image is processed. The maximum of the function. -
m_iMaxCoarse
private int m_iMaxCoarseNumber of coarse iterations -
m_fMaxDistance
private float m_fMaxDistanceThe maximum distance to allow when computing the signed distance transform. -
m_fAdvectionWeight
private float m_fAdvectionWeightThe advection coefficient 'a' in the PDE that controls the evolution. -
m_fPropagationWeight
private float m_fPropagationWeightThe propagation coefficient 'b' in the PDE that controls the evolution. -
m_fCurvatureWeight
private float m_fCurvatureWeightThe curvature coefficient 'c' in the PDE that controls the evolution. -
m_fLaplacianWeight
private float m_fLaplacianWeightThe Laplacian coefficient 'd' in the PDE that controls the evolution. -
m_iMaxEvolution
private int m_iMaxEvolutionNumber of evolution iterations -
m_bImage25D
private boolean m_bImage25DCalculate per-slice: -
m_iSlice
private int m_iSlice
-
-
Constructor Details
-
AlgorithmFastMarching
Creates a new ViewJFrameFastMarching3 object.- Parameters:
_image- DOCUMENT ME!_LUT- DOCUMENT ME!
-
AlgorithmFastMarching
public AlgorithmFastMarching(ModelImage _image, int iFilterType, int iIters, float fGMScale, float fSAlpha, float fSBeta, float fSMin, float fSMax, int iCoarseMax, float fMaxDistance, float fAdvectionWeight, float fPropagationWeight, float fCurvatureWeight, float fLaplacianWeight, int iEvolveMax, boolean bImage25D) Creates a new AlgorithmFastMarching3 object.- Parameters:
_image- reference to the source imageiIters- The number of iterations to use in the nonlinear diffusion (curvature flow filter) applied to the input image.fGMScale- The scale to use in computing the blurred gradient magnitude of the curvature flow image.fSAlpha- The parameters for the sigmoid function through which the blurred gradient magnitude image is processed. The variance of the function.fSBeta- The parameters for the sigmoid function through which the blurred gradient magnitude image is processed. The center of the function.fSMin- The parameters for the sigmoid function through which the blurred gradient magnitude image is processed. The minimum of the function.fSMax- The parameters for the sigmoid function through which the blurred gradient magnitude image is processed. The maximum of the function.iCoarseMax- Number of coarse iterationsfMaxDistance- The maximum distance to allow when computing the signed distance transform. * @param fAdvectionWeight The advection coefficient 'a' in the PDE that controls the evolution.fPropagationWeight- The propagation coefficient 'b' in the PDE that controls the evolution.fCurvatureWeight- The curvature coefficient 'c' in the PDE that controls the evolution.fLaplacianWeight- The Laplacian coefficient 'd' in the PDE that controls the evolution.iEvolveMax- Number of evolution iterations
-
-
Method Details
-
runAlgorithm
public void runAlgorithm()Description copied from class:AlgorithmBaseActually runs the algorithm. Implemented by inheriting algorithms.- Specified by:
runAlgorithmin classAlgorithmBase
-
runAlgorithm3D
public void runAlgorithm3D() -
runAlgorithm25D
private void runAlgorithm25D() -
DrawEvolve3D
DOCUMENT ME!- Parameters:
kSegmenter- DOCUMENT ME!afImage- DOCUMENT ME!
-
DrawFastMarch3D
DOCUMENT ME!- Parameters:
kSegmenter- DOCUMENT ME!afImage- DOCUMENT ME!
-
runAlgorithm2D
public void runAlgorithm2D() -
DrawEvolve2D
DOCUMENT ME!- Parameters:
kSegmenter- DOCUMENT ME!afImage- DOCUMENT ME!
-
DrawFastMarch2D
DOCUMENT ME!- Parameters:
kSegmenter- DOCUMENT ME!afImage- DOCUMENT ME!
-