br.usp.ime.klava.segmentit.util
Enum LabelingCriterion

java.lang.Object
  extended by java.lang.Enum<LabelingCriterion>
      extended by br.usp.ime.klava.segmentit.util.LabelingCriterion
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<LabelingCriterion>

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

Represents the criterion used in the labeling function of markers.

Author:
Bruno Klava

Enum Constant Summary
COLOR_CONNECTED_COMPONENTS
          A unique label is given for each color connected component
COLORS
          A unique label is given for each color
 
Method Summary
static LabelingCriterion valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static LabelingCriterion[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

COLORS

public static final LabelingCriterion COLORS
A unique label is given for each color


COLOR_CONNECTED_COMPONENTS

public static final LabelingCriterion COLOR_CONNECTED_COMPONENTS
A unique label is given for each color connected component

Method Detail

values

public static LabelingCriterion[] 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 (LabelingCriterion c : LabelingCriterion.values())
    System.out.println(c);

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

valueOf

public static LabelingCriterion 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