Enum DirectionalFilter.Operation

java.lang.Object
java.lang.Enum<DirectionalFilter.Operation>
inra.ijpb.morphology.directional.DirectionalFilter.Operation
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DirectionalFilter.Operation>, java.lang.constant.Constable
Enclosing class:
DirectionalFilter

public static enum DirectionalFilter.Operation
extends java.lang.Enum<DirectionalFilter.Operation>
A pre-defined set of operations.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant Description
    CLOSING
    The morphological closing operation
    DILATION
    The morphological dilation operation
    EROSION
    The morphological erosion operation
    MEAN
    The neighborhood mean (average) operation
    MEDIAN
    The neighborhood median operation
    OPENING
    The morphological opening operation
  • Method Summary

    Modifier and Type Method Description
    ij.process.ImageProcessor apply​(ij.process.ImageProcessor image, Strel strel)
    Applies this operation to the input image.
    static DirectionalFilter.Operation fromLabel​(java.lang.String opLabel)
    Determines the operation type from its label.
    static java.lang.String[] getAllLabels()
    Returns the labels for all operations within this enumeration.
    java.lang.String toString()  
    static DirectionalFilter.Operation valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static DirectionalFilter.Operation[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf

    Methods inherited from class java.lang.Object

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

  • Method Details

    • values

      public static DirectionalFilter.Operation[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static DirectionalFilter.Operation 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
    • apply

      public ij.process.ImageProcessor apply​(ij.process.ImageProcessor image, Strel strel)
      Applies this operation to the input image.
      Parameters:
      image - theimage to process
      strel - the structuring element to use
      Returns:
      the filtered image
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Enum<DirectionalFilter.Operation>
    • getAllLabels

      public static java.lang.String[] getAllLabels()
      Returns the labels for all operations within this enumeration.
      Returns:
      the labels for all operations within this enumeration.
    • fromLabel

      public static DirectionalFilter.Operation fromLabel​(java.lang.String opLabel)
      Determines the operation type from its label.
      Parameters:
      opLabel - operation label
      Returns:
      operation
      Throws:
      java.lang.IllegalArgumentException - if label is not recognized.