de.unihalle.informatik.MiToBo.visualization.drawing
Enum DrawRegion2DSet.DrawType
java.lang.Object
java.lang.Enum<DrawRegion2DSet.DrawType>
de.unihalle.informatik.MiToBo.visualization.drawing.DrawRegion2DSet.DrawType
- All Implemented Interfaces:
- Serializable, Comparable<DrawRegion2DSet.DrawType>
- Enclosing class:
- DrawRegion2DSet
public static enum DrawRegion2DSet.DrawType
- extends Enum<DrawRegion2DSet.DrawType>
Type of image to be drawn:
LABEL_IMAGE: draw gray value image where regions are labeled by their index in the set + 1
ID_IMAGE: draw gray value image where regions are labeled by their region id (see MTBRegion2D.id)
MASK_IMAGE: draw a mask image with equal gray values for all regions
COLOR_IMAGE: draw a mask with colored regions
TRANSPARENT_IMAGE: draw a mask with colored regions, but the regions are transparent to show the underlying intensity structure of the given target image
CONTOURS: draw contours of the regions in a given colour
- Author:
- Oliver Gress
LABEL_IMAGE
public static final DrawRegion2DSet.DrawType LABEL_IMAGE
ID_IMAGE
public static final DrawRegion2DSet.DrawType ID_IMAGE
MASK_IMAGE
public static final DrawRegion2DSet.DrawType MASK_IMAGE
COLOR_IMAGE
public static final DrawRegion2DSet.DrawType COLOR_IMAGE
TRANSPARENT_IMAGE
public static final DrawRegion2DSet.DrawType TRANSPARENT_IMAGE
CONTOURS
public static final DrawRegion2DSet.DrawType CONTOURS
values
public static DrawRegion2DSet.DrawType[] 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 (DrawRegion2DSet.DrawType c : DrawRegion2DSet.DrawType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static DrawRegion2DSet.DrawType 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.