Package gov.nih.mipav.model.algorithms
Class AlgorithmStandardDeviationThreshold
- java.lang.Object
- 
- java.lang.Thread
- 
- gov.nih.mipav.model.algorithms.AlgorithmBase
- 
- gov.nih.mipav.model.algorithms.AlgorithmStandardDeviationThreshold
 
 
 
- 
- All Implemented Interfaces:
- java.awt.event.ActionListener,- java.awt.event.WindowListener,- java.lang.Runnable,- java.util.EventListener
 
 public class AlgorithmStandardDeviationThreshold extends AlgorithmBase The Standard Deviation Threshold works by first having an active VOI in which the standard deviation and other statistics are calculated. The dialog allows the user to enter the number of standard deviations and the values outside the range for the thersholding process. The theresholding can be done on the whole image or alternatively, on other VOIS that are not active that might be on the image. The destination can either be a new image or paint in existing image except if the src image is a color image.- Author:
- pandyan
 
- 
- 
Field SummaryFields Modifier and Type Field Description private java.util.BitSetbitsetbitset for src imageprivate booleaninverseThresholdflags for destination, threshold, inverse, and color imageprivate booleanisColorImageflags for destination, threshold, inverse, and color imageprivate intlengthdimensions and lengthprivate java.util.BitSetmaskbitset of vois maskprivate floatmaxIntensitymax intensities for thresholdprivate floatmaxIntensityBmax intensities for thresholdprivate floatmaxIntensityGmax intensities for thresholdprivate floatmaxIntensityRmax intensities for thresholdprivate floatminIntensitymin intensities for thresholdprivate floatminIntensityBmin intensities for thresholdprivate floatminIntensityGmin intensities for thresholdprivate floatminIntensityRmin intensities for thresholdprivate booleannewImageDestinationflags for destination, threshold, inverse, and color imageprivate intnumPixelsnum pixels in thresholdprivate intnumPixelsBnum pixels in thresholdprivate intnumPixelsGnum pixels in thresholdprivate intnumPixelsRnum pixels in thresholdprivate ModelImageresultImagesrc image, result imageprivate ModelImagesrcImagesrc image, result imageprivate floatsumIntensitiestotal volume in thresholdprivate floatsumIntensitiesBtotal volume in thresholdprivate floatsumIntensitiesGtotal volume in thresholdprivate floatsumIntensitiesRtotal volume in thresholdprivate floattotalAreatotal volume in thresholdprivate floattotalAreaBtotal volume in thresholdprivate floattotalAreaGtotal volume in thresholdprivate floattotalAreaRtotal volume in thresholdprivate floattotalVolumetotal volume in thresholdprivate floattotalVolumeBtotal volume in thresholdprivate floattotalVolumeGtotal volume in thresholdprivate floattotalVolumeRtotal volume in thresholdprivate floatvaluesOutsidevalues outside intensities for thresholdprivate floatvaluesOutsideBvalues outside intensities for thresholdprivate floatvaluesOutsideGvalues outside intensities for thresholdprivate floatvaluesOutsideRvalues outside intensities for thresholdprivate booleanwholeImageThresholdflags for destination, threshold, inverse, and color imageprivate intxDimdimensions and lengthprivate floatxResresolutionsprivate intyDimdimensions and lengthprivate floatyResresolutionsprivate intzDimdimensions and lengthprivate floatzResresolutions- 
Fields inherited from class gov.nih.mipav.model.algorithms.AlgorithmBasedestFlag, destImage, image25D, maxProgressValue, minProgressValue, multiThreadingEnabled, nthreads, progress, progressModulus, progressStep, runningInSeparateThread, separable, threadStopped
 
- 
 - 
Constructor SummaryConstructors Constructor Description AlgorithmStandardDeviationThreshold(ModelImage srcImage, float minIntensity, float maxIntensity, float valuesOutside, boolean newImageDestination, boolean wholeImageThreshold, boolean inverseThreshold)constructor for grey scale imageAlgorithmStandardDeviationThreshold(ModelImage srcImage, float minIntensityR, float minIntensityG, float minIntensityB, float maxIntensityR, float maxIntensityG, float maxIntensityB, float valuesOutsideR, float valuesOutsideG, float valuesOutsideB, boolean newImageDestination, boolean wholeImageThreshold, boolean inverseThreshold)constructor for color image
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetNumPixels()getNumPixelsintgetNumPixelsB()getNumPixelsBintgetNumPixelsG()getNumPixelsGintgetNumPixelsR()getNumPixelsRModelImagegetResultImage()getResultImagefloatgetSumIntensities()get sum intensitiesfloatgetSumIntensitiesB()get sum intensities BfloatgetSumIntensitiesG()get sum intensities GfloatgetSumIntensitiesR()get sum intensities RfloatgetTotalArea()getTotalAreafloatgetTotalAreaB()getTotalAreaBfloatgetTotalAreaG()getTotalAreaGfloatgetTotalAreaR()getTotalAreaRfloatgetTotalVolume()getTotalVolumefloatgetTotalVolumeB()getTotalVolumeBfloatgetTotalVolumeG()getTotalVolumeGfloatgetTotalVolumeR()getTotalVolumeRvoidrunAlgorithm()run algorithm- 
Methods inherited from class gov.nih.mipav.model.algorithms.AlgorithmBaseactionPerformed, 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, windowOpened
 - 
Methods inherited from class java.lang.ThreadactiveCount, 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- 
maxIntensityprivate float maxIntensity max intensities for threshold
 - 
maxIntensityRprivate float maxIntensityR max intensities for threshold
 - 
maxIntensityGprivate float maxIntensityG max intensities for threshold
 - 
maxIntensityBprivate float maxIntensityB max intensities for threshold
 - 
minIntensityprivate float minIntensity min intensities for threshold
 - 
minIntensityRprivate float minIntensityR min intensities for threshold
 - 
minIntensityGprivate float minIntensityG min intensities for threshold
 - 
minIntensityBprivate float minIntensityB min intensities for threshold
 - 
srcImageprivate ModelImage srcImage src image, result image
 - 
resultImageprivate ModelImage resultImage src image, result image
 - 
valuesOutsideprivate float valuesOutside values outside intensities for threshold
 - 
valuesOutsideRprivate float valuesOutsideR values outside intensities for threshold
 - 
valuesOutsideGprivate float valuesOutsideG values outside intensities for threshold
 - 
valuesOutsideBprivate float valuesOutsideB values outside intensities for threshold
 - 
xDimprivate int xDim dimensions and length
 - 
yDimprivate int yDim dimensions and length
 - 
zDimprivate int zDim dimensions and length
 - 
lengthprivate int length dimensions and length
 - 
numPixelsprivate int numPixels num pixels in threshold
 - 
numPixelsRprivate int numPixelsR num pixels in threshold
 - 
numPixelsGprivate int numPixelsG num pixels in threshold
 - 
numPixelsBprivate int numPixelsB num pixels in threshold
 - 
totalVolumeprivate float totalVolume total volume in threshold
 - 
totalAreaprivate float totalArea total volume in threshold
 - 
totalVolumeRprivate float totalVolumeR total volume in threshold
 - 
totalVolumeGprivate float totalVolumeG total volume in threshold
 - 
totalVolumeBprivate float totalVolumeB total volume in threshold
 - 
totalAreaRprivate float totalAreaR total volume in threshold
 - 
totalAreaGprivate float totalAreaG total volume in threshold
 - 
totalAreaBprivate float totalAreaB total volume in threshold
 - 
sumIntensitiesprivate float sumIntensities total volume in threshold
 - 
sumIntensitiesRprivate float sumIntensitiesR total volume in threshold
 - 
sumIntensitiesGprivate float sumIntensitiesG total volume in threshold
 - 
sumIntensitiesBprivate float sumIntensitiesB total volume in threshold
 - 
xResprivate float xRes resolutions
 - 
yResprivate float yRes resolutions
 - 
zResprivate float zRes resolutions
 - 
bitsetprivate java.util.BitSet bitset bitset for src image
 - 
newImageDestinationprivate boolean newImageDestination flags for destination, threshold, inverse, and color image
 - 
wholeImageThresholdprivate boolean wholeImageThreshold flags for destination, threshold, inverse, and color image
 - 
inverseThresholdprivate boolean inverseThreshold flags for destination, threshold, inverse, and color image
 - 
isColorImageprivate boolean isColorImage flags for destination, threshold, inverse, and color image
 - 
maskprivate java.util.BitSet mask bitset of vois mask
 
- 
 - 
Constructor Detail- 
AlgorithmStandardDeviationThresholdpublic AlgorithmStandardDeviationThreshold(ModelImage srcImage, float minIntensity, float maxIntensity, float valuesOutside, boolean newImageDestination, boolean wholeImageThreshold, boolean inverseThreshold) constructor for grey scale image- Parameters:
- srcImage-
- minIntensity-
- maxIntensity-
- valuesOutside-
- newImageDestination-
- wholeImageThreshold-
- inverseThreshold-
 
 - 
AlgorithmStandardDeviationThresholdpublic AlgorithmStandardDeviationThreshold(ModelImage srcImage, float minIntensityR, float minIntensityG, float minIntensityB, float maxIntensityR, float maxIntensityG, float maxIntensityB, float valuesOutsideR, float valuesOutsideG, float valuesOutsideB, boolean newImageDestination, boolean wholeImageThreshold, boolean inverseThreshold) constructor for color image- Parameters:
- srcImage-
- minIntensityR-
- minIntensityG-
- minIntensityB-
- maxIntensityR-
- maxIntensityG-
- maxIntensityB-
- valuesOutsideR-
- valuesOutsideG-
- valuesOutsideB-
- newImageDestination-
- wholeImageThreshold-
- inverseThreshold-
 
 
- 
 - 
Method Detail- 
runAlgorithmpublic void runAlgorithm() run algorithm- Specified by:
- runAlgorithmin class- AlgorithmBase
 
 - 
getResultImagepublic ModelImage getResultImage() getResultImage- Returns:
 
 - 
getTotalAreapublic float getTotalArea() getTotalArea- Returns:
 
 - 
getTotalVolumepublic float getTotalVolume() getTotalVolume- Returns:
 
 - 
getNumPixelspublic int getNumPixels() getNumPixels- Returns:
 
 - 
getNumPixelsBpublic int getNumPixelsB() getNumPixelsB- Returns:
 
 - 
getNumPixelsGpublic int getNumPixelsG() getNumPixelsG- Returns:
 
 - 
getNumPixelsRpublic int getNumPixelsR() getNumPixelsR- Returns:
 
 - 
getTotalAreaBpublic float getTotalAreaB() getTotalAreaB- Returns:
 
 - 
getTotalAreaGpublic float getTotalAreaG() getTotalAreaG- Returns:
 
 - 
getTotalAreaRpublic float getTotalAreaR() getTotalAreaR- Returns:
 
 - 
getTotalVolumeBpublic float getTotalVolumeB() getTotalVolumeB- Returns:
 
 - 
getTotalVolumeGpublic float getTotalVolumeG() getTotalVolumeG- Returns:
 
 - 
getTotalVolumeRpublic float getTotalVolumeR() getTotalVolumeR- Returns:
 
 - 
getSumIntensitiespublic float getSumIntensities() get sum intensities- Returns:
 
 - 
getSumIntensitiesBpublic float getSumIntensitiesB() get sum intensities B- Returns:
 
 - 
getSumIntensitiesGpublic float getSumIntensitiesG() get sum intensities G- Returns:
 
 - 
getSumIntensitiesRpublic float getSumIntensitiesR() get sum intensities R- Returns:
 
 
- 
 
-