Enum Class ThresholdOp.Mode
- All Implemented Interfaces:
Serializable, Comparable<ThresholdOp.Mode>, Constable
- Enclosing class:
ThresholdOp
Threshold mode enumeration.
阈值模式枚举。
- Since:
- JDK 25, opencode-base-image V2.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBelow threshold to 0, at or above to 255 | 低于阈值置 0,大于等于阈值置 255Below threshold to 255, at or above to 0 | 低于阈值置 255,大于等于阈值置 0Below threshold to 0, at or above keep | 低于阈值置 0,大于等于阈值保持Below threshold keep, at or above to 0 | 低于阈值保持,大于等于阈值置 0Below threshold keep, at or above to threshold | 低于阈值保持,大于等于阈值置为阈值 -
Method Summary
Modifier and TypeMethodDescriptionstatic ThresholdOp.ModeReturns the enum constant of this class with the specified name.static ThresholdOp.Mode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BINARY
Below threshold to 0, at or above to 255 | 低于阈值置 0,大于等于阈值置 255 -
BINARY_INV
Below threshold to 255, at or above to 0 | 低于阈值置 255,大于等于阈值置 0 -
TRUNC
Below threshold keep, at or above to threshold | 低于阈值保持,大于等于阈值置为阈值 -
TOZERO
Below threshold to 0, at or above keep | 低于阈值置 0,大于等于阈值保持 -
TOZERO_INV
Below threshold keep, at or above to 0 | 低于阈值保持,大于等于阈值置 0
-
-
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
-