Package gov.nih.mipav.model.algorithms
Class AlgorithmVOIProps
- java.lang.Object
- 
- java.lang.Thread
- 
- gov.nih.mipav.model.algorithms.AlgorithmBase
- 
- gov.nih.mipav.model.algorithms.AlgorithmVOIProps
 
 
 
- 
- All Implemented Interfaces:
- VOIStatisticList,- java.awt.event.ActionListener,- java.awt.event.WindowListener,- java.lang.Runnable,- java.util.EventListener
 
 public class AlgorithmVOIProps extends AlgorithmBase implements VOIStatisticList This class calculates a properties of an image defined by a VOI. Attributes include: volume, area, number of pixels, center of mass, average pixel intensity, standard deviation of intensity, eccentricity, principalAxis, coefficient of skewness, and coefficient of kurtosis.- Version:
- 0.1 Feb 11, 1998
- Author:
- Matthew J. McAuliffe, Ph.D.
 Calculates and prepares for display image statistics generated on closed VOI Contours.  
 The contours can  exist on any of the three orthogonal image slices.  
 The user can select to display the contour statistics sorted by contour, contour and slice, 
 slice (contours are summed over a slice), or by a total sum.  
 Depending on the type of output selected by the user the contours are displayed with the following information tags:
 
 By contour : Name, ID
 By contour & slice: Name, orientation, slice, ID
 By slice only: Name, orientation; slice
 By total VOI: Name
 
 Most of the statistics are generated by iterating through the set of voxels that are contained within 
 the closed contour. These statistic calculations take advantage of the information that is generated 
 with the VOIBase.getMask() function and stored inside the VOIBase class. Because the information is 
 generated once at the start of the calculation and stored, the performance for all statistic calculations is improved.
 
 When the VOIBase.getMask() function is called the following information is stored in the VOIBase class: 
 BitSet mask of voxels inside the closed contour
 Vectorlist of voxel positions inside the closed contour Geometric Center of the contour. The following statistics can be derived directly from the stored information: -- number of voxels -- area -- volume -- min, max, sum, average intensity -- median, mode, mode count -- standard deviation, coefficient of skewness, coefficient of kurtosis, center of mass -- geometric center When the AlgorithmVOIProps is instantiated from a dialog, the user is able to select the statistics to calculate. The list of selected statistics is passed to the AlgorithmVOIProps and only the statistics requested by the user are calculated. When AlgorithmVOIProps is accessed through another algorithm, all statistics are automatically calculated. Median statistics (median, mode, mode count) are calculated in a function that takes the list of voxels as input, can be used on a single contour or on a group of contours. Standard deviation statistics are calculated in a function that takes the list of voxel positions, can be used on a single contour or on a group of contours. 
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description private classAlgorithmVOIProps.Calc34D
 - 
Field SummaryFields Modifier and Type Field Description private VOIactiveVOIThe VOI on which to perform the calculations.private java.lang.ThreadGroupcalcGroupThe top-level group of threads used for calculating.private intconsecutiveNegativeNeededprotected booleandistanceFlagWhether or not to calculate largest distance (only 3D), true by defaultprotected booleandoOnlyActiveContoursBoolean for if the algorithm should ONLY check active contoursprivate doublenegativeCurvatureNeededprivate doublenegativeHysteresisFractionprotected java.text.DecimalFormatnfFormatting for float values into strings.protected java.text.DecimalFormatnfeprivate doublepositiveHysteresisFractionstatic intPROCESS_PER_CONTOURAlgorithm maintains separate statistics per contourstatic intPROCESS_PER_SLICEAlgorithm sums all statistics from each contour on the same slicestatic intPROCESS_PER_SLICE_AND_CONTOURAlgorithm maintains separate statistics per contour and denotes the slice of each contourstatic intPROCESS_PER_VOIAlgorithm sums all statistics for the entire VOIprotected intprocessTypeHow the VOI calculations should be performed (entire, contour, slice).protected java.util.Vector<VOIStatisticalProperties>propertyListVector to hold all properties calculated within the algorithm for later access.protected JPanelPixelExclusionSelector.RangeTyperangeFlagSpecifies how a range of pixels is excluded from VOI calculations.protected ViewVOIVectorselectedVOIsetVector of all VOIs that will have calculations performed.protected booleanshowTotalsWhether or not to show totals for each calculation.protected booleansliceDistanceFlagWhether or not to calculate largest slice distance, true by defaultprivate booleansmoothCurvatureprotected boolean[]statsList- 
Fields inherited from class gov.nih.mipav.model.algorithms.AlgorithmBasedestFlag, destImage, image25D, mask, maxProgressValue, minProgressValue, multiThreadingEnabled, nthreads, progress, progressModulus, progressStep, runningInSeparateThread, separable, srcImage, threadStopped
 - 
Fields inherited from interface gov.nih.mipav.model.structures.VOIStatisticListareaDescription, asymmetryIndexDescription, avgIntensity, axisDescription, circularityDescription, deviationDescription, eccentricityDescription, fractalDimensionBoxCountDescription, fractalDimensionEuclideanDistanceDescription, geometricCenterDescription, invariantMoment1Description, invariantMoment2Description, invariantMoment3Description, invariantMoment4Description, invariantMoment5Description, invariantMoment6Description, invariantMoment7Description, kurtosisDescription, largestDistanceDescription, largestSliceDistanceDescription, majorAxisDescription, massCenterDescription, maxIntensity, maxWidthDescription, meanCurvatureDescription, meanNegativeCurvatureDescription, median, minIntensity, minorAxisDescription, mode, modeCount, numberOfIndentationsCurvatureDescription, numberOfIndentationsHullDescription, numberOfStatistics, perimeterDescription, quantityDescription, skewnessDescription, solidityDescription, statisticDescription, stdDevCurvatureDescription, sumIntensities, surfaceAreaDescription, volumeDescription
 
- 
 - 
Constructor SummaryConstructors Constructor Description AlgorithmVOIProps(ModelImage srcImg, int pType, JPanelPixelExclusionSelector.RangeType rangeFlag, ViewVOIVector voiSet)constructor. note that if there are no VOIs to act on, this constructor returns quietly.AlgorithmVOIProps(ModelImage srcImg, int processType, ViewVOIVector voiSet)constructor.AlgorithmVOIProps(ModelImage srcImg, ViewVOIVector voiSet)constructor. sets the source image of the algorithm, and presets the algorithm to calculate properties of 3D images as a volume of interest, rather than by slice.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringaddScannerLabels(java.lang.String baseString, WildMagic.LibFoundation.Mathematics.Vector3f currentPt)DOCUMENT ME!voidfinalize()Prepares this class for destruction.floatgetArea()Gets the area of the VOI; return area defined by the VOI.java.lang.StringgetAsymmetryIndex()floatgetAvgInten()Gets the average intensity of the VOI return average intensity of image defined by the VOI.floatgetAvgIntenB()Gets the average intensity of the Blue channel of VOI return average intensity of the Blue channel of image defined by the VOI.floatgetAvgIntenG()Gets the average intensity of the Green channel of VOI return average intensity of the Green channel of image defined by the VOI.floatgetAvgIntenR()Gets the average intensity of the Red channel of VOI return average intensity of the Red channel of image defined by the VOI.java.lang.StringgetCenterOfMass()Gets the the center of mass of the VOI ; return center of mass defined by the VOI.java.lang.StringgetCenterOfMassB()Gets the the blue center of mass of the VOI ; return blue center of mass defined by the VOI.java.lang.StringgetCenterOfMassG()Gets the the green center of mass of the VOI ; return green center of mass defined by the VOI.java.lang.StringgetCenterOfMassR()Gets the the red center of mass of the VOI ; return red center of mass defined by the VOI.java.lang.StringgetCircularity()Gets the circularity of the VOI.floatgetEccentricity()Gets the eccentricity of the VOI: 1 = line, 0 = circle; return eccentricity of the VOI.doublegetFractalDimensionBoxCount()doublegetFractalDimensionEuclideanDistance()java.lang.StringgetGeometricCenter()Gets the the geometric center of the VOI ; return geometric center defined by the VOI.floatgetKurtosis()Gets the coefficient of kurtosis of the pixel values in the VOIfloatgetKurtosisB()Gets the coefficient of kurtosis of the blue pixel values in the VOIfloatgetKurtosisG()Gets the coefficient of kurtosis of the green pixel values in the VOIfloatgetKurtosisR()Gets the coefficient of kurtosis of the red pixel values in the VOIjava.lang.StringgetLargestDistance()Gets the largest line segment totally contained within a 3D VOI (in terms of res).java.lang.StringgetLargestSliceDistance()Gets the largest line segment totally contained within a VOI slice (in terms of res).floatgetMajorAxis()Gets the major axis of VOI (only valid for 2D object); return major axis length of the VOI.floatgetMaxIntensity()Gets the maximum intensity of the VOI return average intensity of image defined by the VOI.floatgetMaxIntensityBlue()Gets the maximum intensity of the Blue channel for the VOI return average intensity of image defined by the VOI.floatgetMaxIntensityGreen()Gets the maximum intensity of the Green channel for the VOI return average intensity of image defined by the VOI.floatgetMaxIntensityRed()Gets the maximum intensity of the Red channel for the VOI return average intensity of image defined by the VOI.java.lang.StringgetMeanCurvature()java.lang.StringgetMeanNegativeCurvature()floatgetMedian()Gets the medianfloatgetMedianB()Gets the median of the Blue channel of image defined by the VOI.floatgetMedianG()Gets the median of the Green channel of image defined by the VOI.floatgetMedianR()Gets the median of the Red channel of image defined by the VOI.floatgetMinIntensity()Gets the minimum intensity of the VOI return average intensity of image defined by the VOI.floatgetMinIntensityBlue()Gets the minimum intensity of the Blue channel for the VOI return average intensity of image defined by the VOI.floatgetMinIntensityGreen()Gets the minimum intensity of the Green channel for the VOI return average intensity of image defined by the VOI.floatgetMinIntensityRed()Gets the minimum intensity of the Red channel for the VOI return average intensity of image defined by the VOI.floatgetMinorAxis()Gets the minor axis of VOI (only valid for 2D object); return minor axis length of the VOI.floatgetMode()Gets the modefloatgetModeB()Gets the mode of the Blue channel of image defined by the VOI.intgetModeCount()Gets the modeintgetModeCountB()Gets the mode of the Blue channel of image defined by the VOI.intgetModeCountG()Gets the mode of the Green channel of image defined by the VOI.intgetModeCountR()Gets the mode of the Red channel of image defined by the VOI.floatgetModeG()Gets the mode of the Green channel of image defined by the VOI.floatgetModeR()Gets the mode of the Red channel of image defined by the VOI.java.lang.StringgetNumberOfIndentationsCurvture()java.lang.StringgetNumberOfIndentationsHull()intgetNVoxels()Gets the the number of pixels return number of pixels defined by the VOI.java.lang.StringgetPerimeter()Gets the perimeter of the VOI (in terms of res).floatgetPrincipalAxis()Gets the principle axis of VOI (only valid for 2D object); return pricipal axis angle of the VOI.intgetProcessType()Reports if algorithm is performing calcs per slice, per contour, or for entire VOI.java.lang.String[]getScannerPositionLabels(WildMagic.LibFoundation.Mathematics.Vector3f position)Gets position data to display in message bar - for DICOM and MINC images, gives patient position as well.floatgetSkewness()Gets the coefficient of skewness of the pixel values in the VOIfloatgetSkewnessB()Gets the coefficient of skewness of the blue pixel values in the VOIfloatgetSkewnessG()Gets the coefficient of skewness of the green pixel values in the VOIfloatgetSkewnessR()Gets the coefficient of skewness of the red pixel values in the VOIjava.lang.StringgetSolidity()Gets the solidity of the VOI.floatgetStdDev()Gets the standard deviation of image intensities return standard deviation of image intensities defined by the VOI.floatgetStdDevB()Gets the get standard deviation of image intensities (blue channel) return standard deviation of image intensities defined by the VOI.java.lang.StringgetStdDevCurvature()floatgetStdDevG()Gets the standard deviation of image intensities (green channel) return standard deviation of image intensities defined by the VOI.floatgetStdDevR()Gets the standard deviation of image intensities (red channel) return standard deviation of image intensities defined by the VOI.floatgetSumIntensities()Gets the sum of image intensities defined by the VOIfloatgetSumIntensitiesB()Gets the sum of blue channel mage intensities defined by the VOIfloatgetSumIntensitiesG()Gets the sum of green channel image intensities defined by the VOIfloatgetSumIntensitiesR()Gets the sum of red channel image intensities defined by the VOIfloatgetSurfaceArea()Gets the surfaceArea of the VOI; return surfaceArea defined by the VOI.ViewVOIVectorgetVOIList()gets the selected VOIsetVOIStatisticalPropertiesgetVOIProperties(VOI aVOI)DOCUMENT ME!floatgetVolume()Gets the volume of the VOI; return volume defined by the VOI.protected intindexOf(java.lang.String statistic)private voidinitialiseDataHolders(int numberOfVOIs)DOCUMENT ME!booleanisColor()Accessor that indicates if the source image is a color image.java.lang.String[]makeStatisticListDescriptions()Creates the list of labels to use in the checkboxes.voidrunAlgorithm()Begins execution of the software.voidsetConsecutiveNegativeNeeded(int consecutiveNegativeNeeded)voidsetDistanceFlag(boolean distanceFlag)Sets whether the largest distance is calculated.voidsetDoOnlyActiveContours(boolean doActive)Sets the flag for calculating totals ONLY for active contoursvoidsetNegativeCurvatureNeeded(double negativeCurvatureNeeded)voidsetNegativeHysteresisFraction(double negativeHysteresisFraction)voidsetPositiveHysteresisFraction(double positiveHysteresisFraction)voidsetPrecisionDisplay(int numDecimal, boolean doForce)Sets the String float formatter to trim to numDecimal number of decimals.voidsetSelectedStatistics(boolean[] checkList)Sets the list of selected statistics to calculate.voidsetSelectedVOI(VOI aVOI)DOCUMENT ME!voidsetShowTotals(boolean totals)tells the algorithm to total the property calculations.voidsetSliceDistanceFlag(boolean sliceDistanceFlag)Sets whether the largest slice distance is calculated.voidsetSmoothCurvature(boolean smoothCurvature)voidsetVOIList(ViewVOIVector vvv)sets the selected VOIset and the data set data storage sizes based on the number of curves in the Vector.voidsetVOIList(javax.swing.ListModel list)DOCUMENT ME!- 
Methods inherited from class gov.nih.mipav.model.algorithms.AlgorithmBaseactionPerformed, 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.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- 
smoothCurvatureprivate boolean smoothCurvature 
 - 
negativeHysteresisFractionprivate double negativeHysteresisFraction 
 - 
positiveHysteresisFractionprivate double positiveHysteresisFraction 
 - 
consecutiveNegativeNeededprivate int consecutiveNegativeNeeded 
 - 
negativeCurvatureNeededprivate double negativeCurvatureNeeded 
 - 
PROCESS_PER_VOIpublic static final int PROCESS_PER_VOI Algorithm sums all statistics for the entire VOI- See Also:
- Constant Field Values
 
 - 
PROCESS_PER_SLICE_AND_CONTOURpublic static final int PROCESS_PER_SLICE_AND_CONTOUR Algorithm maintains separate statistics per contour and denotes the slice of each contour- See Also:
- Constant Field Values
 
 - 
PROCESS_PER_SLICEpublic static final int PROCESS_PER_SLICE Algorithm sums all statistics from each contour on the same slice- See Also:
- Constant Field Values
 
 - 
PROCESS_PER_CONTOURpublic static final int PROCESS_PER_CONTOUR Algorithm maintains separate statistics per contour- See Also:
- Constant Field Values
 
 - 
activeVOIprivate VOI activeVOI The VOI on which to perform the calculations.
 - 
nfprotected java.text.DecimalFormat nf Formatting for float values into strings.
 - 
nfeprotected java.text.DecimalFormat nfe 
 - 
processTypeprotected int processType How the VOI calculations should be performed (entire, contour, slice).
 - 
propertyListprotected java.util.Vector<VOIStatisticalProperties> propertyList Vector to hold all properties calculated within the algorithm for later access.
 - 
rangeFlagprotected JPanelPixelExclusionSelector.RangeType rangeFlag Specifies how a range of pixels is excluded from VOI calculations.
 - 
sliceDistanceFlagprotected boolean sliceDistanceFlag Whether or not to calculate largest slice distance, true by default
 - 
distanceFlagprotected boolean distanceFlag Whether or not to calculate largest distance (only 3D), true by default
 - 
selectedVOIsetprotected ViewVOIVector selectedVOIset Vector of all VOIs that will have calculations performed.
 - 
showTotalsprotected boolean showTotals Whether or not to show totals for each calculation.
 - 
doOnlyActiveContoursprotected boolean doOnlyActiveContours Boolean for if the algorithm should ONLY check active contours
 - 
calcGroupprivate java.lang.ThreadGroup calcGroup The top-level group of threads used for calculating.
 - 
statsListprotected boolean[] statsList 
 
- 
 - 
Constructor Detail- 
AlgorithmVOIPropspublic AlgorithmVOIProps(ModelImage srcImg, int pType, JPanelPixelExclusionSelector.RangeType rangeFlag, ViewVOIVector voiSet) constructor. note that if there are no VOIs to act on, this constructor returns quietly.- Parameters:
- srcImg- image model that contain the VOI
- pType- list of items to perform the statistics operations on
- rangeFlag- Whether the range of values specified by the statistics generator should be ignored
- voiSet- The VOIs that will be calculated
 
 - 
AlgorithmVOIPropspublic AlgorithmVOIProps(ModelImage srcImg, int processType, ViewVOIVector voiSet) constructor.- Parameters:
- srcImg- image model that contain the VOI
- processType- perform the property calculations for each slice, rather than for whole volume of interest
- voiSet- The VOIs that will be calculated
 
 - 
AlgorithmVOIPropspublic AlgorithmVOIProps(ModelImage srcImg, ViewVOIVector voiSet) constructor. sets the source image of the algorithm, and presets the algorithm to calculate properties of 3D images as a volume of interest, rather than by slice.- Parameters:
- srcImg- image model that contain the VOI
- voiSet- The VOIs that will be calculated
 
 
- 
 - 
Method Detail- 
setSmoothCurvaturepublic void setSmoothCurvature(boolean smoothCurvature) 
 - 
setNegativeHysteresisFractionpublic void setNegativeHysteresisFraction(double negativeHysteresisFraction) 
 - 
setPositiveHysteresisFractionpublic void setPositiveHysteresisFraction(double positiveHysteresisFraction) 
 - 
setConsecutiveNegativeNeededpublic void setConsecutiveNegativeNeeded(int consecutiveNegativeNeeded) 
 - 
setNegativeCurvatureNeededpublic void setNegativeCurvatureNeeded(double negativeCurvatureNeeded) 
 - 
finalizepublic void finalize() Prepares this class for destruction.- Overrides:
- finalizein class- AlgorithmBase
 
 - 
getAreapublic float getArea() Gets the area of the VOI; return area defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getSurfaceAreapublic float getSurfaceArea() Gets the surfaceArea of the VOI; return surfaceArea defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getAvgIntenpublic float getAvgInten() Gets the average intensity of the VOI return average intensity of image defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getAvgIntenBpublic float getAvgIntenB() Gets the average intensity of the Blue channel of VOI return average intensity of the Blue channel of image defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getAvgIntenGpublic float getAvgIntenG() Gets the average intensity of the Green channel of VOI return average intensity of the Green channel of image defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getAvgIntenRpublic float getAvgIntenR() Gets the average intensity of the Red channel of VOI return average intensity of the Red channel of image defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getCenterOfMasspublic java.lang.String getCenterOfMass() Gets the the center of mass of the VOI ; return center of mass defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getCenterOfMassBpublic java.lang.String getCenterOfMassB() Gets the the blue center of mass of the VOI ; return blue center of mass defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getCenterOfMassGpublic java.lang.String getCenterOfMassG() Gets the the green center of mass of the VOI ; return green center of mass defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getCenterOfMassRpublic java.lang.String getCenterOfMassR() Gets the the red center of mass of the VOI ; return red center of mass defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getEccentricitypublic float getEccentricity() Gets the eccentricity of the VOI: 1 = line, 0 = circle; return eccentricity of the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getGeometricCenterpublic java.lang.String getGeometricCenter() Gets the the geometric center of the VOI ; return geometric center defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getKurtosispublic float getKurtosis() Gets the coefficient of kurtosis of the pixel values in the VOI- Returns:
 
 - 
getKurtosisBpublic float getKurtosisB() Gets the coefficient of kurtosis of the blue pixel values in the VOI- Returns:
 
 - 
getKurtosisGpublic float getKurtosisG() Gets the coefficient of kurtosis of the green pixel values in the VOI- Returns:
 
 - 
getKurtosisRpublic float getKurtosisR() Gets the coefficient of kurtosis of the red pixel values in the VOI- Returns:
 
 - 
getLargestDistancepublic java.lang.String getLargestDistance() Gets the largest line segment totally contained within a 3D VOI (in terms of res). If this unexpectedly returns zero, make sure you have not inadvertently set distanceFlag to false.- Returns:
- String largest distance string
 
 - 
getLargestSliceDistancepublic java.lang.String getLargestSliceDistance() Gets the largest line segment totally contained within a VOI slice (in terms of res). If this unexpectedly returns zero, make sure you have not inadvertently set sliceDistanceFlag to false.- Returns:
- String largest slice distance string
 
 - 
getMajorAxispublic float getMajorAxis() Gets the major axis of VOI (only valid for 2D object); return major axis length of the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getMaxIntensitypublic float getMaxIntensity() Gets the maximum intensity of the VOI return average intensity of image defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getMaxIntensityBluepublic float getMaxIntensityBlue() Gets the maximum intensity of the Blue channel for the VOI return average intensity of image defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getMaxIntensityGreenpublic float getMaxIntensityGreen() Gets the maximum intensity of the Green channel for the VOI return average intensity of image defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getMaxIntensityRedpublic float getMaxIntensityRed() Gets the maximum intensity of the Red channel for the VOI return average intensity of image defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getMedianpublic float getMedian() Gets the median- Returns:
- DOCUMENT ME!
 
 - 
getMedianBpublic float getMedianB() Gets the median of the Blue channel of image defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getMedianGpublic float getMedianG() Gets the median of the Green channel of image defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getMedianRpublic float getMedianR() Gets the median of the Red channel of image defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getMinIntensitypublic float getMinIntensity() Gets the minimum intensity of the VOI return average intensity of image defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getMinIntensityBluepublic float getMinIntensityBlue() Gets the minimum intensity of the Blue channel for the VOI return average intensity of image defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getMinIntensityGreenpublic float getMinIntensityGreen() Gets the minimum intensity of the Green channel for the VOI return average intensity of image defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getMinIntensityRedpublic float getMinIntensityRed() Gets the minimum intensity of the Red channel for the VOI return average intensity of image defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getMinorAxispublic float getMinorAxis() Gets the minor axis of VOI (only valid for 2D object); return minor axis length of the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getModepublic float getMode() Gets the mode- Returns:
- DOCUMENT ME!
 
 - 
getModeBpublic float getModeB() Gets the mode of the Blue channel of image defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getModeCountpublic int getModeCount() Gets the mode- Returns:
- DOCUMENT ME!
 
 - 
getModeCountBpublic int getModeCountB() Gets the mode of the Blue channel of image defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getModeCountGpublic int getModeCountG() Gets the mode of the Green channel of image defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getModeCountRpublic int getModeCountR() Gets the mode of the Red channel of image defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getModeGpublic float getModeG() Gets the mode of the Green channel of image defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getModeRpublic float getModeR() Gets the mode of the Red channel of image defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getNVoxelspublic int getNVoxels() Gets the the number of pixels return number of pixels defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getPerimeterpublic java.lang.String getPerimeter() Gets the perimeter of the VOI (in terms of res).- Returns:
- String perimeter string
 
 - 
getCircularitypublic java.lang.String getCircularity() Gets the circularity of the VOI.- Returns:
- String circularity string
 
 - 
getSoliditypublic java.lang.String getSolidity() Gets the solidity of the VOI.- Returns:
- String solidity string
 
 - 
getNumberOfIndentationsCurvturepublic java.lang.String getNumberOfIndentationsCurvture() 
 - 
getNumberOfIndentationsHullpublic java.lang.String getNumberOfIndentationsHull() 
 - 
getMeanCurvaturepublic java.lang.String getMeanCurvature() - Returns:
 
 - 
getStdDevCurvaturepublic java.lang.String getStdDevCurvature() - Returns:
 
 - 
getMeanNegativeCurvaturepublic java.lang.String getMeanNegativeCurvature() - Returns:
 
 - 
getAsymmetryIndexpublic java.lang.String getAsymmetryIndex() 
 - 
getPrincipalAxispublic float getPrincipalAxis() Gets the principle axis of VOI (only valid for 2D object); return pricipal axis angle of the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getFractalDimensionBoxCountpublic double getFractalDimensionBoxCount() 
 - 
getFractalDimensionEuclideanDistancepublic double getFractalDimensionEuclideanDistance() 
 - 
getProcessTypepublic int getProcessType() Reports if algorithm is performing calcs per slice, per contour, or for entire VOI.- Returns:
- processType (int for process type)
 
 - 
getScannerPositionLabelspublic java.lang.String[] getScannerPositionLabels(WildMagic.LibFoundation.Mathematics.Vector3f position) Gets position data to display in message bar - for DICOM and MINC images, gives patient position as well. The image's associated transformation must be FileInfoBase.TRANSFORM_SCANNER_ANATOMICAL, or the orientations must be set up correctly, or else the function returns null.- Parameters:
- image- The image the point lies within.
- position- (x,y,z(slice)) position in FileCoordinates
- Returns:
- An array of strings that represent patient position.
 
 - 
getSkewnesspublic float getSkewness() Gets the coefficient of skewness of the pixel values in the VOI- Returns:
 
 - 
getSkewnessBpublic float getSkewnessB() Gets the coefficient of skewness of the blue pixel values in the VOI- Returns:
 
 - 
getSkewnessGpublic float getSkewnessG() Gets the coefficient of skewness of the green pixel values in the VOI- Returns:
 
 - 
getSkewnessRpublic float getSkewnessR() Gets the coefficient of skewness of the red pixel values in the VOI- Returns:
 
 - 
getStdDevpublic float getStdDev() Gets the standard deviation of image intensities return standard deviation of image intensities defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getStdDevBpublic float getStdDevB() Gets the get standard deviation of image intensities (blue channel) return standard deviation of image intensities defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getStdDevGpublic float getStdDevG() Gets the standard deviation of image intensities (green channel) return standard deviation of image intensities defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getStdDevRpublic float getStdDevR() Gets the standard deviation of image intensities (red channel) return standard deviation of image intensities defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
getSumIntensitiespublic float getSumIntensities() Gets the sum of image intensities defined by the VOI- Returns:
 
 - 
getSumIntensitiesBpublic float getSumIntensitiesB() Gets the sum of blue channel mage intensities defined by the VOI- Returns:
 
 - 
getSumIntensitiesGpublic float getSumIntensitiesG() Gets the sum of green channel image intensities defined by the VOI- Returns:
 
 - 
getSumIntensitiesRpublic float getSumIntensitiesR() Gets the sum of red channel image intensities defined by the VOI- Returns:
 
 - 
getVOIPropertiespublic VOIStatisticalProperties getVOIProperties(VOI aVOI) DOCUMENT ME!- Parameters:
- aVOI- DOCUMENT ME!
- Returns:
- DOCUMENT ME!
 
 - 
getVolumepublic float getVolume() Gets the volume of the VOI; return volume defined by the VOI.- Returns:
- DOCUMENT ME!
 
 - 
isColorpublic boolean isColor() Accessor that indicates if the source image is a color image.- Returns:
- trueif the image is a color image.
 
 - 
makeStatisticListDescriptionspublic java.lang.String[] makeStatisticListDescriptions() Creates the list of labels to use in the checkboxes.- Returns:
- DOCUMENT ME!
 
 - 
runAlgorithmpublic void runAlgorithm() Begins execution of the software.- Specified by:
- runAlgorithmin class- AlgorithmBase
 
 - 
setDistanceFlagpublic void setDistanceFlag(boolean distanceFlag) Sets whether the largest distance is calculated. Defaults to true, set to false if VOI will not complete.- Parameters:
- distanceFlag-
 
 - 
setDoOnlyActiveContourspublic void setDoOnlyActiveContours(boolean doActive) Sets the flag for calculating totals ONLY for active contours- Parameters:
- doActive-
 
 - 
setPrecisionDisplaypublic void setPrecisionDisplay(int numDecimal, boolean doForce)Sets the String float formatter to trim to numDecimal number of decimals.- Parameters:
- numDecimal- int number of decimals
- doForce- boolean force numDecimal or allow zero
 
 - 
setSelectedStatisticspublic void setSelectedStatistics(boolean[] checkList) Sets the list of selected statistics to calculate. Default is to calculate all statistics.- Parameters:
- checkList-
 
 - 
setSelectedVOIpublic void setSelectedVOI(VOI aVOI) DOCUMENT ME!- Parameters:
- aVOI- DOCUMENT ME!
 
 - 
setShowTotalspublic void setShowTotals(boolean totals) tells the algorithm to total the property calculations.- Parameters:
- totals- DOCUMENT ME!
 
 - 
setSliceDistanceFlagpublic void setSliceDistanceFlag(boolean sliceDistanceFlag) Sets whether the largest slice distance is calculated. Defaults to true, set to false if VOI will not complete.- Parameters:
- sliceDistanceFlag-
 
 - 
setVOIListpublic void setVOIList(javax.swing.ListModel list) DOCUMENT ME!- Parameters:
- list- DOCUMENT ME!
 
 - 
setVOIListpublic void setVOIList(ViewVOIVector vvv) sets the selected VOIset and the data set data storage sizes based on the number of curves in the Vector.- Parameters:
- vvv- DOCUMENT ME!
 
 - 
getVOIListpublic ViewVOIVector getVOIList() gets the selected VOIset- Parameters:
- vvv- DOCUMENT ME!
 
 - 
addScannerLabelsprotected java.lang.String addScannerLabels(java.lang.String baseString, WildMagic.LibFoundation.Mathematics.Vector3f currentPt)DOCUMENT ME!- Parameters:
- leadBase- DOCUMENT ME!
 
 - 
indexOfprotected int indexOf(java.lang.String statistic) 
 - 
initialiseDataHoldersprivate void initialiseDataHolders(int numberOfVOIs) DOCUMENT ME!- Parameters:
- numberOfVOIs- DOCUMENT ME!
 
 
- 
 
-