Enum Class StatsType

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

public enum StatsType extends Enum<StatsType>
An enumeration of the types of statistic that are computed for ROIs.
  • Enum Constant Details

    • 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 Details

    • values

      public static StatsType[] 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

      public static StatsType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getInstance

      public static StatsType getInstance(String s) throws InvalidArgumentException
      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

      public String toString()
      Returns a string describing the type of ROI statistic.
      Overrides:
      toString in class Enum<StatsType>
      Returns:
      a String describing the type of ROI statistic.