Package com.xinapse.multisliceimage.roi
Enum Class StatsType
- All Implemented Interfaces:
Serializable
,Comparable<StatsType>
,Constable
An enumeration of the types of statistic that are computed for ROIs.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionStatsType for ROI annotation.StatsType for ROI area.StatsType for length.StatsType for maximum intensity.StatsType for maximum Feret's diameter.StatsType for mean intensity.StatsType for median intensity.StatsType for minimum intensity.StatsType for minimum Feret's diameter.StatsType for perimeter.StatsType for slice number.StatsType for standard deviation. -
Method Summary
Modifier and TypeMethodDescriptionstatic StatsType
Returns the StatsType corresponding to the supplied String.toString()
Returns a string describing the type of ROI statistic.static StatsType
Returns the enum constant of this class with the specified name.static StatsType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANNOTATION
StatsType for ROI annotation. -
SLICE_NUMBER
StatsType for slice number. -
AREA
StatsType for ROI area. -
MEAN
StatsType for mean intensity. -
STD_DEV
StatsType for standard deviation. -
MEDIAN
StatsType for median intensity. -
MIN
StatsType for minimum intensity. -
MAX
StatsType for maximum intensity. -
LENGTH
StatsType for length. -
MIN_FERET
StatsType for minimum Feret's diameter. -
MAX_FERET
StatsType for maximum Feret's diameter. -
PERIMETER
StatsType for perimeter.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getInstance
Returns the StatsType corresponding to the supplied String. For example, supplying "median" would return StatsType.MEDIAN;- Parameters:
s
- the String from which to interpret the StatsType.- Returns:
- the StatsType corresponding to the supplied String.
- Throws:
InvalidArgumentException
- if there is no StatsType corresponding to the supplied String.
-
toString
Returns a string describing the type of ROI statistic.
-