de.unihalle.informatik.MiToBo.segmentation.basics
Enum SegmentationInitializer.InputMode

java.lang.Object
  extended by java.lang.Enum<SegmentationInitializer.InputMode>
      extended by de.unihalle.informatik.MiToBo.segmentation.basics.SegmentationInitializer.InputMode
All Implemented Interfaces:
Serializable, Comparable<SegmentationInitializer.InputMode>
Enclosing class:
SegmentationInitializer

public static enum SegmentationInitializer.InputMode
extends Enum<SegmentationInitializer.InputMode>

Available data sources.


Enum Constant Summary
MODE_BINARY_IMAGE
          Two labels are initialized. i.e. a foreground and a background class.
MODE_LABEL_IMAGE
          A label image is used for initialization.
MODE_REGION_SET
          Given a region set a label image is generated which is then used for initialization (see MODE_LABEL_IMAGE).
MODE_SHAPE
          A binary mask is generated according to the shape specification.
MODE_THRESHOLD
          An input image is expected which is thresholded with the given value.
 
Method Summary
static SegmentationInitializer.InputMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SegmentationInitializer.InputMode[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MODE_LABEL_IMAGE

public static final SegmentationInitializer.InputMode MODE_LABEL_IMAGE
A label image is used for initialization.

For each label a class is initialized, pixels with a label of zero are assigned to the background class.


MODE_BINARY_IMAGE

public static final SegmentationInitializer.InputMode MODE_BINARY_IMAGE
Two labels are initialized. i.e. a foreground and a background class.

Pixels with intensity values larger than zero are assigned to the foreground class, the others to the background.


MODE_REGION_SET

public static final SegmentationInitializer.InputMode MODE_REGION_SET
Given a region set a label image is generated which is then used for initialization (see MODE_LABEL_IMAGE).


MODE_THRESHOLD

public static final SegmentationInitializer.InputMode MODE_THRESHOLD
An input image is expected which is thresholded with the given value.

From the resulting binary image subsequently two classes are initialized (see MODE_BINARY_IMAGE).


MODE_SHAPE

public static final SegmentationInitializer.InputMode MODE_SHAPE
A binary mask is generated according to the shape specification.

The interior of the shape is defined to be foreground, the exterior to be background.

Method Detail

values

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

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

valueOf

public static SegmentationInitializer.InputMode valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.