Enum Class SobelFilter.SobelType

java.lang.Object
java.lang.Enum<SobelFilter.SobelType>
com.xinapse.filter.SobelFilter.SobelType
All Implemented Interfaces:
Serializable, Comparable<SobelFilter.SobelType>, Constable
Enclosing class:
SobelFilter

public static enum SobelFilter.SobelType extends Enum<SobelFilter.SobelType>
An enumeration of the types of Sobel filter.
  • Enum Constant Details

    • X

      public static final SobelFilter.SobelType X
      The SobelType for a filter that computes the gradient in the along-row direction.
    • Y

      public static final SobelFilter.SobelType Y
      The SobelType for a filter that computes the gradient in the along-column direction.
    • Z

      public static final SobelFilter.SobelType Z
      The SobelType for a filter that computes the gradient in the through-slice direction.
    • MAGNITUDE

      public static final SobelFilter.SobelType MAGNITUDE
      The SobelType for a filter that computes the magnitude of the gradient.
  • Method Details

    • values

      public static SobelFilter.SobelType[] 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 SobelFilter.SobelType 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
    • getInstance

      public static SobelFilter.SobelType getInstance(String name)
      Returns a SolbelType corresponding to the given name.
      Parameters:
      name - the name of one of the SobelTypes.
      Returns:
      a SobelType with the given name, or the default type if the name is not recognised.