Package adams.data.image.transformer
Enum BinaryMask.ReplacementType
- java.lang.Object
-
- java.lang.Enum<BinaryMask.ReplacementType>
-
- adams.data.image.transformer.BinaryMask.ReplacementType
-
- All Implemented Interfaces:
Serializable
,Comparable<BinaryMask.ReplacementType>
- Enclosing class:
- BinaryMask
public static enum BinaryMask.ReplacementType extends Enum<BinaryMask.ReplacementType>
Determines what pixels to replace.- Version:
- $Revision: 7706 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description REPLACE_BLACK_PIXELS
replace the black pixels.REPLACE_WHITE_PIXELS
replace the white pixels.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BinaryMask.ReplacementType
valueOf(String name)
Returns the enum constant of this type with the specified name.static BinaryMask.ReplacementType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REPLACE_WHITE_PIXELS
public static final BinaryMask.ReplacementType REPLACE_WHITE_PIXELS
replace the white pixels.
-
REPLACE_BLACK_PIXELS
public static final BinaryMask.ReplacementType REPLACE_BLACK_PIXELS
replace the black pixels.
-
-
Method Detail
-
values
public static BinaryMask.ReplacementType[] 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 (BinaryMask.ReplacementType c : BinaryMask.ReplacementType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BinaryMask.ReplacementType 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 nameNullPointerException
- if the argument is null
-
-