Package gov.nih.mipav.model.algorithms
Class AlgorithmEvaluateSegmentation
- java.lang.Object
-
- java.lang.Thread
-
- gov.nih.mipav.model.algorithms.AlgorithmBase
-
- gov.nih.mipav.model.algorithms.AlgorithmEvaluateSegmentation
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.awt.event.WindowListener,java.lang.Runnable,java.util.EventListener
public class AlgorithmEvaluateSegmentation extends AlgorithmBase
Compares segmentation results of a test image to segmentation results of an ideal gold standard true image. Comparisons are made for contour or polyline vois having the same ids in the 2 images. For each id number, the false negative volume fraction, the false positive volume fraction, and the positive volume fraction are output to the global data text.
-
-
Field Summary
Fields Modifier and Type Field Description private doubleabsoluteTruetotal number of id voxels in true image.private doublefalseNegativewhere trueImage has id but test image does not.private doublefalsePositivewhere trueImage does not have id but test image does.private doublefnvffalse negative volume fraction.private doublefpvffalse positive volume fraction.private intlengthDOCUMENT ME!private intnTestVOIsDOCUMENT ME!private intnTrueVOIsDOCUMENT ME!private inttestIDDOCUMENT ME!private ModelImagetestImageDOCUMENT ME!private inttestLengthDOCUMENT ME!private ViewVOIVectortestVOIsDOCUMENT ME!private doubletpvfpositive volume fraction.private doubletrueFoundnumber of the absoluteTrue found in the test image.private inttrueIDDOCUMENT ME!private ViewVOIVectortrueVOIsDOCUMENT ME!-
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 AlgorithmEvaluateSegmentation(ModelImage trueImage, ModelImage testImage)Creates a new AlgorithmEvaluateSegmentation object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinalize()Prepares this class for destruction.voidrunAlgorithm()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
-
absoluteTrue
private double absoluteTrue
total number of id voxels in true image.
-
falseNegative
private double falseNegative
where trueImage has id but test image does not.
-
falsePositive
private double falsePositive
where trueImage does not have id but test image does.
-
fnvf
private double fnvf
false negative volume fraction.
-
fpvf
private double fpvf
false positive volume fraction.
-
length
private int length
DOCUMENT ME!
-
nTestVOIs
private int nTestVOIs
DOCUMENT ME!
-
nTrueVOIs
private int nTrueVOIs
DOCUMENT ME!
-
testID
private int testID
DOCUMENT ME!
-
testImage
private ModelImage testImage
DOCUMENT ME!
-
testLength
private int testLength
DOCUMENT ME!
-
testVOIs
private ViewVOIVector testVOIs
DOCUMENT ME!
-
tpvf
private double tpvf
positive volume fraction.
-
trueFound
private double trueFound
number of the absoluteTrue found in the test image.
-
trueID
private int trueID
DOCUMENT ME!
-
trueVOIs
private ViewVOIVector trueVOIs
DOCUMENT ME!
-
-
Constructor Detail
-
AlgorithmEvaluateSegmentation
public AlgorithmEvaluateSegmentation(ModelImage trueImage, ModelImage testImage)
Creates a new AlgorithmEvaluateSegmentation object.- Parameters:
trueImage- image model used as a ideal gold standardtestImage- image model tested against the trueImage
-
-
Method Detail
-
finalize
public void finalize()
Prepares this class for destruction.- Overrides:
finalizein classAlgorithmBase
-
runAlgorithm
public void runAlgorithm()
Starts the program.- Specified by:
runAlgorithmin classAlgorithmBase
-
-