Package gov.nih.mipav.model.algorithms
Class AlgorithmQuantify
java.lang.Object
java.lang.Thread
gov.nih.mipav.model.algorithms.AlgorithmBase
gov.nih.mipav.model.algorithms.AlgorithmQuantify
- All Implemented Interfaces:
ActionListener,WindowListener,Runnable,EventListener
Quantify image data based on a mask image. At present calculates the number of voxels, volume, total
intensity , mean intensity, and standard deviation for an object defined in a mask image.
- Version:
- 0.1 Feb 11, 1998
- Author:
- Matthew J. McAuliffe, Ph.D.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionAlgorithmQuantify(ModelImage srcImg, ModelImage maskImg) Creates a new AlgorithmQuantify object. -
Method Summary
Modifier and TypeMethodDescriptionvoidfinalize()Prepares this class for destruction.voidStarts the programvoidshowRegionInfo(int[] count) Display statistics about the grown region.voidshowRegionInfo(int[] count, double[][] total, double[][] mean, double[][] stdDev, double[][] median) Display statistics about the grown region.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
-
maskImage
The mask image. The range of the image [0, positive integer value] where zero is the background and a positive number indicates that is part of an object that has the same positive integer number.
-
-
Constructor Details
-
AlgorithmQuantify
Creates a new AlgorithmQuantify object.- Parameters:
srcImg- image model where result image is to storedmaskImg- source image model
-
-
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
-
showRegionInfo
public void showRegionInfo(int[] count, double[][] total, double[][] mean, double[][] stdDev, double[][] median) Display statistics about the grown region.- Parameters:
count- Number of pixels (voxels)total- Sum of pixel intensitiesmean- Average pixel intensitystdDev- Standard deviation of pixel intensitiesmedian- Median of pixel intensities
-
showRegionInfo
public void showRegionInfo(int[] count) Display statistics about the grown region.- Parameters:
count- Number of pixels (voxels)
-