Package boofcv.factory.filter.binary
Enum ThresholdType
- java.lang.Object
-
- java.lang.Enum<ThresholdType>
-
- boofcv.factory.filter.binary.ThresholdType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ThresholdType>
public enum ThresholdType extends java.lang.Enum<ThresholdType>
Enum for all the types of thresholding provided in BoofCV
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCK_MEANBreaks the image into blocks and computes the mean inside each block.BLOCK_MIN_MAXBreaks the image into blocks and computes the min and max inside each block.BLOCK_OTSUBreaks the image into blocks and computes the an Otsu threshold in each blockFIXEDFixed thresholdGLOBAL_ENTROPYGlobally adaptive set using entropy equationGLOBAL_HUANGGlobal Adaptive using Huang's equation.GLOBAL_LIGlobal Adaptive using Li's equation.GLOBAL_OTSUGlobally adaptive set using Otsu's equationLOCAL_GAUSSIANLocally adaptive computed using Guassian weightsLOCAL_MEANLocally adaptive using an averageLOCAL_NICKLocally adaptive computed using NICK methodLOCAL_OTSUApplies a local Otsu across the entire imageLOCAL_SAVOLALocally adaptive computed using Savola's method
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAdaptive()booleanisGlobal()static ThresholdTypevalueOf(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.
-
-
-
Enum Constant Detail
-
FIXED
public static final ThresholdType FIXED
Fixed threshold
-
GLOBAL_ENTROPY
public static final ThresholdType GLOBAL_ENTROPY
Globally adaptive set using entropy equation
-
GLOBAL_OTSU
public static final ThresholdType GLOBAL_OTSU
Globally adaptive set using Otsu's equation
-
GLOBAL_LI
public static final ThresholdType GLOBAL_LI
Global Adaptive using Li's equation.- See Also:
GThresholdImageOps.computeLi(int[], int)
-
GLOBAL_HUANG
public static final ThresholdType GLOBAL_HUANG
Global Adaptive using Huang's equation.
-
LOCAL_GAUSSIAN
public static final ThresholdType LOCAL_GAUSSIAN
Locally adaptive computed using Guassian weights
-
LOCAL_MEAN
public static final ThresholdType LOCAL_MEAN
Locally adaptive using an average
-
LOCAL_OTSU
public static final ThresholdType LOCAL_OTSU
Applies a local Otsu across the entire image- See Also:
ThresholdLocalOtsu
-
BLOCK_MIN_MAX
public static final ThresholdType BLOCK_MIN_MAX
Breaks the image into blocks and computes the min and max inside each block. Then thresholds each pixel using interpolated min/max values.- See Also:
ThresholdBlockMinMax
-
BLOCK_MEAN
public static final ThresholdType BLOCK_MEAN
Breaks the image into blocks and computes the mean inside each block.- See Also:
ThresholdBlockMean
-
BLOCK_OTSU
public static final ThresholdType BLOCK_OTSU
Breaks the image into blocks and computes the an Otsu threshold in each block- See Also:
ThresholdBlockOtsu
-
LOCAL_SAVOLA
public static final ThresholdType LOCAL_SAVOLA
Locally adaptive computed using Savola's method- See Also:
ThresholdSauvola
-
LOCAL_NICK
public static final ThresholdType LOCAL_NICK
Locally adaptive computed using NICK method- See Also:
ThresholdNick
-
-
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(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
isAdaptive
public boolean isAdaptive()
-
isGlobal
public boolean isGlobal()
-
-