Enum MorphTypesEnum

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<MorphTypesEnum>

    public enum MorphTypesEnum
    extends java.lang.Enum<MorphTypesEnum>
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      MORPH_BLACKHAT
      "black hat" \f[\texttt{dst} = \mathrm{blackhat} ( \texttt{src} , \texttt{element} )= \mathrm{close} ( \texttt{src} , \texttt{element} )- \texttt{src}\f]
      MORPH_CLOSE
      a closing operation \f[\texttt{dst} = \mathrm{close} ( \texttt{src} , \texttt{element} )= \mathrm{erode} ( \mathrm{dilate} ( \texttt{src} , \texttt{element} ))\f]
      MORPH_DILATE
      see cv::dilate
      MORPH_ERODE
      see cv::erode
      MORPH_GRADIENT
      a morphological gradient \f[\texttt{dst} = \mathrm{morph\_grad} ( \texttt{src} , \texttt{element} )= \mathrm{dilate} ( \texttt{src} , \texttt{element} )- \mathrm{erode} ( \texttt{src} , \texttt{element} )\f]
      MORPH_OPEN
      an opening operation \f[\texttt{dst} = \mathrm{open} ( \texttt{src} , \texttt{element} )= \mathrm{dilate} ( \mathrm{erode} ( \texttt{src} , \texttt{element} ))\f]
      MORPH_TOPHAT
      "top hat" \f[\texttt{dst} = \mathrm{tophat} ( \texttt{src} , \texttt{element} )= \texttt{src} - \mathrm{open} ( \texttt{src} , \texttt{element} )\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 MorphTypesEnum valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static MorphTypesEnum[] 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

      • MORPH_ERODE

        public static final MorphTypesEnum MORPH_ERODE
        see cv::erode
      • MORPH_DILATE

        public static final MorphTypesEnum MORPH_DILATE
        see cv::dilate
      • MORPH_OPEN

        public static final MorphTypesEnum MORPH_OPEN
        an opening operation \f[\texttt{dst} = \mathrm{open} ( \texttt{src} , \texttt{element} )= \mathrm{dilate} ( \mathrm{erode} ( \texttt{src} , \texttt{element} ))\f]
      • MORPH_CLOSE

        public static final MorphTypesEnum MORPH_CLOSE
        a closing operation \f[\texttt{dst} = \mathrm{close} ( \texttt{src} , \texttt{element} )= \mathrm{erode} ( \mathrm{dilate} ( \texttt{src} , \texttt{element} ))\f]
      • MORPH_GRADIENT

        public static final MorphTypesEnum MORPH_GRADIENT
        a morphological gradient \f[\texttt{dst} = \mathrm{morph\_grad} ( \texttt{src} , \texttt{element} )= \mathrm{dilate} ( \texttt{src} , \texttt{element} )- \mathrm{erode} ( \texttt{src} , \texttt{element} )\f]
      • MORPH_TOPHAT

        public static final MorphTypesEnum MORPH_TOPHAT
        "top hat" \f[\texttt{dst} = \mathrm{tophat} ( \texttt{src} , \texttt{element} )= \texttt{src} - \mathrm{open} ( \texttt{src} , \texttt{element} )\f]
      • MORPH_BLACKHAT

        public static final MorphTypesEnum MORPH_BLACKHAT
        "black hat" \f[\texttt{dst} = \mathrm{blackhat} ( \texttt{src} , \texttt{element} )= \mathrm{close} ( \texttt{src} , \texttt{element} )- \texttt{src}\f]
    • Field Detail

      • value

        public final int value
    • Method Detail

      • values

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

        public static MorphTypesEnum 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