com.xinapse.multisliceimage.roi
Enum StatsType

java.lang.Object
  extended by java.lang.Enum<StatsType>
      extended by com.xinapse.multisliceimage.roi.StatsType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<StatsType>

public enum StatsType
extends java.lang.Enum<StatsType>

An enumeration of the types of statistic that are computed for ROIs.


Enum Constant Summary
ANNOTATION
          StatsType for ROI annotation.
AREA
          StatsType for ROI area.
LENGTH
          StatsType for length.
MAX
          StatsType for maximum intensity.
MAX_FERET
          StatsType for maximum Feret's diameter.
MEAN
          StatsType for mean intensity.
MEDIAN
          StatsType for median intensity.
MIN
          StatsType for minimum intensity.
MIN_FERET
          StatsType for minimum Feret's diameter.
PERIMETER
          StatsType for perimeter.
SLICE_NUMBER
          StatsType for slice number.
STD_DEV
          StatsType for standard deviation.
 
Method Summary
static StatsType getInstance(java.lang.String s)
          Returns the StatsType corresponding to the supplied String.
 java.lang.String toString()
          Returns a string describing the type of ROI statistic.
static StatsType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static StatsType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ANNOTATION

public static final StatsType ANNOTATION
StatsType for ROI annotation.


SLICE_NUMBER

public static final StatsType SLICE_NUMBER
StatsType for slice number.


AREA

public static final StatsType AREA
StatsType for ROI area.


MEAN

public static final StatsType MEAN
StatsType for mean intensity.


STD_DEV

public static final StatsType STD_DEV
StatsType for standard deviation.


MEDIAN

public static final StatsType MEDIAN
StatsType for median intensity.


MIN

public static final StatsType MIN
StatsType for minimum intensity.


MAX

public static final StatsType MAX
StatsType for maximum intensity.


LENGTH

public static final StatsType LENGTH
StatsType for length.


MIN_FERET

public static final StatsType MIN_FERET
StatsType for minimum Feret's diameter.


MAX_FERET

public static final StatsType MAX_FERET
StatsType for maximum Feret's diameter.


PERIMETER

public static final StatsType PERIMETER
StatsType for perimeter.

Method Detail

values

public static StatsType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (StatsType c : StatsType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static StatsType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getInstance

public static StatsType getInstance(java.lang.String s)
                             throws com.xinapse.util.InvalidArgumentException
Returns the StatsType corresponding to the supplied String. For example, supplying "median" would return StatsType.MEDIAN;

Returns:
the StatsType corresponding to the supplied String.
Throws:
com.xinapse.util.InvalidArgumentException

toString

public java.lang.String toString()
Returns a string describing the type of ROI statistic.

Overrides:
toString in class java.lang.Enum<StatsType>
Returns:
a java.lang.String describing the type of ROI statistic.


Copyright 2006-2011 Xinapse Systems Limited. All Rights Reserved.