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:
java.awt.event.ActionListener,java.awt.event.WindowListener,java.lang.Runnable,java.util.EventListener
public class AlgorithmQuantify extends AlgorithmBase
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.
-
-
Field Summary
Fields Modifier and Type Field Description private ModelImagemaskImageThe mask image.-
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 AlgorithmQuantify(ModelImage srcImg, ModelImage maskImg)Creates a new AlgorithmQuantify object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinalize()Prepares this class for destruction.voidrunAlgorithm()Starts 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, 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
-
maskImage
private ModelImage 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 Detail
-
AlgorithmQuantify
public AlgorithmQuantify(ModelImage srcImg, ModelImage maskImg)
Creates a new AlgorithmQuantify object.- Parameters:
srcImg- image model where result image is to storedmaskImg- source image model
-
-
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
-
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)
-
-