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:
ActionListener,WindowListener,Runnable,EventListener
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubletotal number of id voxels in true image.private doublewhere trueImage has id but test image does not.private doublewhere trueImage does not have id but test image does.private doublefalse negative volume fraction.private doublefalse positive volume fraction.private intDOCUMENT ME!private intDOCUMENT ME!private intDOCUMENT ME!private intDOCUMENT ME!private ModelImageDOCUMENT ME!private intDOCUMENT ME!private ViewVOIVectorDOCUMENT ME!private doublepositive volume fraction.private doublenumber of the absoluteTrue found in the test image.private intDOCUMENT ME!private ViewVOIVectorDOCUMENT 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, threadStoppedFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionAlgorithmEvaluateSegmentation(ModelImage trueImage, ModelImage testImage) Creates a new AlgorithmEvaluateSegmentation object. -
Method Summary
Modifier and TypeMethodDescriptionvoidfinalize()Prepares this class for destruction.voidStarts 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, 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
-
absoluteTrue
private double absoluteTruetotal number of id voxels in true image. -
falseNegative
private double falseNegativewhere trueImage has id but test image does not. -
falsePositive
private double falsePositivewhere trueImage does not have id but test image does. -
fnvf
private double fnvffalse negative volume fraction. -
fpvf
private double fpvffalse positive volume fraction. -
length
private int lengthDOCUMENT ME! -
nTestVOIs
private int nTestVOIsDOCUMENT ME! -
nTrueVOIs
private int nTrueVOIsDOCUMENT ME! -
testID
private int testIDDOCUMENT ME! -
testImage
DOCUMENT ME! -
testLength
private int testLengthDOCUMENT ME! -
testVOIs
DOCUMENT ME! -
tpvf
private double tpvfpositive volume fraction. -
trueFound
private double trueFoundnumber of the absoluteTrue found in the test image. -
trueID
private int trueIDDOCUMENT ME! -
trueVOIs
DOCUMENT ME!
-
-
Constructor Details
-
AlgorithmEvaluateSegmentation
Creates a new AlgorithmEvaluateSegmentation object.- Parameters:
trueImage- image model used as a ideal gold standardtestImage- image model tested against the trueImage
-
-
Method Details
-
finalize
public void finalize()Prepares this class for destruction.- Overrides:
finalizein classAlgorithmBase
-
runAlgorithm
public void runAlgorithm()Starts the program.- Specified by:
runAlgorithmin classAlgorithmBase
-