Package adams.data.opencv
Enum ThresholdType
- java.lang.Object
-
- java.lang.Enum<ThresholdType>
-
- adams.data.opencv.ThresholdType
-
- All Implemented Interfaces:
Serializable
,Comparable<ThresholdType>
public enum ThresholdType extends Enum<ThresholdType>
The threshold types.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description THRESH_BINARY
THRESH_BINARY_INV
THRESH_MASK
THRESH_OTSU
THRESH_TOZERO
THRESH_TOZERO_INV
THRESH_TRIANGLE
THRESH_TRUNC
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getType()
Returns the OpenCV type.static ThresholdType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ThresholdType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
THRESH_BINARY
public static final ThresholdType THRESH_BINARY
-
THRESH_BINARY_INV
public static final ThresholdType THRESH_BINARY_INV
-
THRESH_TRUNC
public static final ThresholdType THRESH_TRUNC
-
THRESH_TOZERO
public static final ThresholdType THRESH_TOZERO
-
THRESH_TOZERO_INV
public static final ThresholdType THRESH_TOZERO_INV
-
THRESH_MASK
public static final ThresholdType THRESH_MASK
-
THRESH_OTSU
public static final ThresholdType THRESH_OTSU
-
THRESH_TRIANGLE
public static final ThresholdType THRESH_TRIANGLE
-
-
Method Detail
-
values
public static ThresholdType[] 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 (ThresholdType c : ThresholdType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ThresholdType 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
-
getType
public int getType()
Returns the OpenCV type.- Returns:
- the type
-
-