Enum ThresholdTypesEnum

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      THRESH_BINARY
      \f[\texttt{dst} (x,y) = \fork{\texttt{maxval}}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{0}{otherwise}\f]
      THRESH_BINARY_INV
      \f[\texttt{dst} (x,y) = \fork{0}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{\texttt{maxval}}{otherwise}\f]
      THRESH_MASK  
      THRESH_OTSU
      flag, use Otsu algorithm to choose the optimal threshold value
      THRESH_TOZERO
      \f[\texttt{dst} (x,y) = \fork{\texttt{src}(x,y)}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{0}{otherwise}\f]
      THRESH_TOZERO_INV
      \f[\texttt{dst} (x,y) = \fork{0}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{\texttt{src}(x,y)}{otherwise}\f]
      THRESH_TRIANGLE
      flag, use Triangle algorithm to choose the optimal threshold value
      THRESH_TRUNC
      \f[\texttt{dst} (x,y) = \fork{\texttt{threshold}}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{\texttt{src}(x,y)}{otherwise}\f]
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int value  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ThresholdTypesEnum valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ThresholdTypesEnum[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • THRESH_BINARY

        public static final ThresholdTypesEnum THRESH_BINARY
        \f[\texttt{dst} (x,y) = \fork{\texttt{maxval}}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{0}{otherwise}\f]
      • THRESH_BINARY_INV

        public static final ThresholdTypesEnum THRESH_BINARY_INV
        \f[\texttt{dst} (x,y) = \fork{0}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{\texttt{maxval}}{otherwise}\f]
      • THRESH_TRUNC

        public static final ThresholdTypesEnum THRESH_TRUNC
        \f[\texttt{dst} (x,y) = \fork{\texttt{threshold}}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{\texttt{src}(x,y)}{otherwise}\f]
      • THRESH_TOZERO

        public static final ThresholdTypesEnum THRESH_TOZERO
        \f[\texttt{dst} (x,y) = \fork{\texttt{src}(x,y)}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{0}{otherwise}\f]
      • THRESH_TOZERO_INV

        public static final ThresholdTypesEnum THRESH_TOZERO_INV
        \f[\texttt{dst} (x,y) = \fork{0}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{\texttt{src}(x,y)}{otherwise}\f]
      • THRESH_OTSU

        public static final ThresholdTypesEnum THRESH_OTSU
        flag, use Otsu algorithm to choose the optimal threshold value
      • THRESH_TRIANGLE

        public static final ThresholdTypesEnum THRESH_TRIANGLE
        flag, use Triangle algorithm to choose the optimal threshold value
    • Field Detail

      • value

        public final int value
    • Method Detail

      • values

        public static ThresholdTypesEnum[] 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 (ThresholdTypesEnum c : ThresholdTypesEnum.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ThresholdTypesEnum 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 name
        java.lang.NullPointerException - if the argument is null