Package gov.nih.mipav.model.structures
Class VOIStatisticalProperties
- java.lang.Object
-
- gov.nih.mipav.model.structures.VOIStatisticalProperties
-
- All Implemented Interfaces:
VOIStatisticList
public class VOIStatisticalProperties extends java.lang.Object implements VOIStatisticList
$Logfile: /mipav/src/gov/nih/mipav/model/structures/VOIStatisticalProperties.java $ $Revision: 4 $ $Date: 7/27/04 1:42p $
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Hashtable<java.lang.String,java.lang.Object>
data
The hashtable of statistics.static char
DELIM
static java.lang.String
TOTAL
-
Fields inherited from interface gov.nih.mipav.model.structures.VOIStatisticList
areaDescription, 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 Summary
Constructors Constructor Description VOIStatisticalProperties()
Creates a new VOIStatisticalProperties object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getContourStatistic(java.lang.String statistic, java.lang.String contourLabel)
Gets the statistic for a particular contour of a VOI without reference to the slice a contour may exist on.java.lang.String
getProperty(java.lang.Object key)
java.lang.Object
getSliceContourStatistic(java.lang.String statistic, int slice, java.lang.String contourLabel)
Gets the statistic for a particular contour on a particular slice of a VOI.java.lang.Object
getSliceStatistic(java.lang.String statistic, int slice)
Gets the statistic for all the contours of a VOI that exist on a particular slice.java.lang.Object
getTotalStatistic(java.lang.String statistic)
Gets the total statistics for all elements of the VOIs that are included in this properties object.java.lang.Object
getVOIStatistic(java.lang.String statistic)
Gets the statistic for the whole VOI.void
setContourStatistic(java.lang.String statistic, java.lang.String contourLabel, java.lang.Object statisticValue)
Stores the statistic for a particular contour of a VOI without reference to the slice a contour may exist on.void
setProperty(java.lang.String string, java.lang.Object value)
void
setSliceContourStatistic(java.lang.String statistic, int slice, java.lang.String contourLabel, java.lang.Object statisticValue)
Stores the statistic for a particular contour on a particular slice of a VOI.void
setSliceStatistic(java.lang.String statistic, int slice, java.lang.Object statisticValue)
Stores the statistic for all the contours of a VOI that exist on a particular slice.void
setTotalStatistic(java.lang.String statistic, java.lang.Object statisticValue)
Stores the total statistics for all elements of the VOIs that are included in this properties object.void
setVOIStatistic(java.lang.String statistic, java.lang.Object statisticValue)
Stores the statistic for the whole VOI.
-
-
-
Field Detail
-
DELIM
public static final char DELIM
- See Also:
- Constant Field Values
-
TOTAL
public static final java.lang.String TOTAL
- See Also:
- Constant Field Values
-
data
private java.util.Hashtable<java.lang.String,java.lang.Object> data
The hashtable of statistics.
-
-
Method Detail
-
getTotalStatistic
public java.lang.Object getTotalStatistic(java.lang.String statistic)
Gets the total statistics for all elements of the VOIs that are included in this properties object. For example, if statistics for every slice have been calculated, this method should be used to store the total of this statistic on all slices.- Parameters:
statistic
- The statistic that has been calculated- Returns:
- The calculated statistic
-
setTotalStatistic
public void setTotalStatistic(java.lang.String statistic, java.lang.Object statisticValue)
Stores the total statistics for all elements of the VOIs that are included in this properties object. For example, if statistics for every slice have been calculated, this method should be used to store the total of this statistic on all slices.- Parameters:
statistic
- The statistic that has been calculatedstatisticValue
- The value of the calculated statistic
-
getSliceStatistic
public java.lang.Object getSliceStatistic(java.lang.String statistic, int slice)
Gets the statistic for all the contours of a VOI that exist on a particular slice.- Parameters:
statistic
- The statistic that has been calculatedslice
- The slice that the contours exist on- Returns:
- The value of the calculated statistic
-
setSliceStatistic
public void setSliceStatistic(java.lang.String statistic, int slice, java.lang.Object statisticValue)
Stores the statistic for all the contours of a VOI that exist on a particular slice.- Parameters:
statistic
- The statistic that has been calculatedslice
- The slice that the contours exist onstatisticValue
- The value of the calculated statistic
-
getContourStatistic
public java.lang.Object getContourStatistic(java.lang.String statistic, java.lang.String contourLabel)
Gets the statistic for a particular contour of a VOI without reference to the slice a contour may exist on.- Parameters:
statistic
- The statistic that has been calculatedcontourLabel
- The contour that this statistic relates to- Returns:
- The value of the calculated statistic
-
setContourStatistic
public void setContourStatistic(java.lang.String statistic, java.lang.String contourLabel, java.lang.Object statisticValue)
Stores the statistic for a particular contour of a VOI without reference to the slice a contour may exist on.- Parameters:
statistic
- The statistic that has been calculatedcontourLabel
- The contour that this statistic relates tostatisticValue
- The value of the calculated statistic
-
getSliceContourStatistic
public java.lang.Object getSliceContourStatistic(java.lang.String statistic, int slice, java.lang.String contourLabel)
Gets the statistic for a particular contour on a particular slice of a VOI.- Parameters:
statistic
- The statistic that has been calculatedslice
- The image slice that this statistic relate tocontourLabel
- The contour that this statistic relates to- Returns:
- The value of the calculated statistic
-
setSliceContourStatistic
public void setSliceContourStatistic(java.lang.String statistic, int slice, java.lang.String contourLabel, java.lang.Object statisticValue)
Stores the statistic for a particular contour on a particular slice of a VOI.- Parameters:
statistic
- The statistic that has been calculatedslice
- The image slice that this statistic relate tocontourLabel
- The contour that this statistic relates tostatisticValue
- The value of the calculated statistic
-
getVOIStatistic
public java.lang.Object getVOIStatistic(java.lang.String statistic)
Gets the statistic for the whole VOI.- Parameters:
statistic
- The statistic that has been calculated- Returns:
- The value of the calculated statistic
-
setVOIStatistic
public void setVOIStatistic(java.lang.String statistic, java.lang.Object statisticValue)
Stores the statistic for the whole VOI.- Parameters:
statistic
- The statistic that has been calculatedstatisticValue
- The value of the calculated statistic
-
setProperty
public void setProperty(java.lang.String string, java.lang.Object value)
-
getProperty
public java.lang.String getProperty(java.lang.Object key)
-
-