public static enum SegmentationInitializer.InputMode extends Enum<SegmentationInitializer.InputMode>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final SegmentationInitializer.InputMode MODE_LABEL_IMAGE
For each label a class is initialized, pixels with a label of zero are assigned to the background class.
public static final SegmentationInitializer.InputMode MODE_BINARY_IMAGE
Pixels with intensity values larger than zero are assigned to the foreground class, the others to the background.
public static final SegmentationInitializer.InputMode MODE_REGION_SET
public static final SegmentationInitializer.InputMode MODE_THRESHOLD
From the resulting binary image subsequently two classes are initialized (see MODE_BINARY_IMAGE).
public static final SegmentationInitializer.InputMode MODE_SHAPE
The interior of the shape is defined to be foreground, the exterior to be background.
public static SegmentationInitializer.InputMode[] values()
for (SegmentationInitializer.InputMode c : SegmentationInitializer.InputMode.values()) System.out.println(c);
public static SegmentationInitializer.InputMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.