Enum Class ThresholdOp.Mode

java.lang.Object
java.lang.Enum<ThresholdOp.Mode>
cloud.opencode.base.image.threshold.ThresholdOp.Mode
All Implemented Interfaces:
Serializable, Comparable<ThresholdOp.Mode>, Constable
Enclosing class:
ThresholdOp

public static enum ThresholdOp.Mode extends Enum<ThresholdOp.Mode>
Threshold mode enumeration. 阈值模式枚举。
Since:
JDK 25, opencode-base-image V2.0.0
Author:
Leon Soo www.LeonSoo.com
  • Enum Constant Details

    • BINARY

      public static final ThresholdOp.Mode BINARY
      Below threshold to 0, at or above to 255 | 低于阈值置 0,大于等于阈值置 255
    • BINARY_INV

      public static final ThresholdOp.Mode BINARY_INV
      Below threshold to 255, at or above to 0 | 低于阈值置 255,大于等于阈值置 0
    • TRUNC

      public static final ThresholdOp.Mode TRUNC
      Below threshold keep, at or above to threshold | 低于阈值保持,大于等于阈值置为阈值
    • TOZERO

      public static final ThresholdOp.Mode TOZERO
      Below threshold to 0, at or above keep | 低于阈值置 0,大于等于阈值保持
    • TOZERO_INV

      public static final ThresholdOp.Mode TOZERO_INV
      Below threshold keep, at or above to 0 | 低于阈值保持,大于等于阈值置 0
  • Method Details

    • values

      public static ThresholdOp.Mode[] 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

      public static ThresholdOp.Mode valueOf(String name)
      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 name
      NullPointerException - if the argument is null