Package boofcv.factory.filter.binary
Enum Class ThresholdType
- All Implemented Interfaces:
Serializable
,Comparable<ThresholdType>
,java.lang.constant.Constable
Enum for all the types of thresholding provided in BoofCV
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBreaks the image into blocks and computes the mean inside each block.Breaks the image into blocks and computes the min and max inside each block.Breaks the image into blocks and computes the an Otsu threshold in each blockFixed thresholdGlobally adaptive set using entropy equationGlobal Adaptive using Huang's equation.Global Adaptive using Li's equation.Globally adaptive set using Otsu's equationLocally adaptive computed using Guassian weightsLocally adaptive using an averageLocally adaptive computed using Niblack's methodLocally adaptive computed using NICK methodApplies a local Otsu across the entire imageLocally adaptive computed using Savola's methodLocally adaptive computed using Wolf's method -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
isGlobal()
static ThresholdType
Returns the enum constant of this class with the specified name.static ThresholdType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FIXED
Fixed threshold -
GLOBAL_ENTROPY
Globally adaptive set using entropy equation -
GLOBAL_OTSU
Globally adaptive set using Otsu's equation -
GLOBAL_LI
Global Adaptive using Li's equation.- See Also:
-
GLOBAL_HUANG
Global Adaptive using Huang's equation. -
LOCAL_GAUSSIAN
Locally adaptive computed using Guassian weights -
LOCAL_MEAN
Locally adaptive using an average -
LOCAL_OTSU
Applies a local Otsu across the entire image- See Also:
-
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:
-
BLOCK_MEAN
Breaks the image into blocks and computes the mean inside each block.- See Also:
-
BLOCK_OTSU
Breaks the image into blocks and computes the an Otsu threshold in each block- See Also:
-
LOCAL_NIBLACK
Locally adaptive computed using Niblack's method- See Also:
-
LOCAL_SAVOLA
Locally adaptive computed using Savola's method- See Also:
-
LOCAL_WOLF
Locally adaptive computed using Wolf's method- See Also:
-
LOCAL_NICK
Locally adaptive computed using NICK method- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
isAdaptive
public boolean isAdaptive() -
isGlobal
public boolean isGlobal()
-