public enum ThresholdType extends java.lang.Enum<ThresholdType>
| Enum Constant and Description |
|---|
FIXED
Fixed threshold
|
GLOBAL_ENTROPY
Globally adaptive set using entropy equation
|
GLOBAL_OTSU
Globally adaptive set using Otsu's equation
|
LOCAL_GAUSSIAN
Locally adaptive computed using Guassian weights
|
LOCAL_SAVOLA
Locally adaptive computed using Savola's method
|
LOCAL_SQUARE
Locally adaptive computed using Guassian weights
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAdaptive() |
boolean |
isGlobal() |
static ThresholdType |
valueOf(java.lang.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.
|
public static final ThresholdType FIXED
public static final ThresholdType GLOBAL_ENTROPY
public static final ThresholdType GLOBAL_OTSU
public static final ThresholdType LOCAL_GAUSSIAN
ThresholdImageOps#localGaussian(ImageUInt8, ImageUInt8, int, int, boolean, ImageUInt8, ImageUInt8)public static final ThresholdType LOCAL_SQUARE
ThresholdImageOps#localSquare(ImageUInt8, ImageUInt8, int, int, boolean, ImageUInt8, ImageUInt8)public static final ThresholdType LOCAL_SAVOLA
ThresholdSauvolapublic static ThresholdType[] values()
for (ThresholdType c : ThresholdType.values()) System.out.println(c);
public static ThresholdType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isAdaptive()
public boolean isGlobal()