public enum ThresholdType extends java.lang.Enum<ThresholdType>
| Enum Constant and Description |
|---|
BLOCK_MEAN
Breaks the image into blocks and computes the mean inside each block.
|
BLOCK_MIN_MAX
Breaks the image into blocks and computes the min and max inside each block.
|
BLOCK_OTSU
Breaks the image into blocks and computes the an Otsu threshold in each block
|
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_MEAN
Locally adaptive using an average
|
LOCAL_NICK
Locally adaptive computed using NICK method
|
LOCAL_OTSU
Applies a local Otsu across the entire image
|
LOCAL_SAVOLA
Locally adaptive computed using Savola's method
|
| 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
public static final ThresholdType LOCAL_MEAN
public static final ThresholdType LOCAL_OTSU
ThresholdLocalOtsupublic static final ThresholdType BLOCK_MIN_MAX
ThresholdBlockMinMaxpublic static final ThresholdType BLOCK_MEAN
ThresholdBlockMeanpublic static final ThresholdType BLOCK_OTSU
ThresholdBlockOtsupublic static final ThresholdType LOCAL_SAVOLA
ThresholdSauvolapublic static final ThresholdType LOCAL_NICK
ThresholdNickpublic 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()