Enum ExtendedMinAndMaxPlugin.Operation

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

public static enum ExtendedMinAndMaxPlugin.Operation
extends java.lang.Enum<ExtendedMinAndMaxPlugin.Operation>
A customized enumeration to choose between extended minima or maxima.
  • 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
    EXTENDED_MAXIMA
    Extended maxima operation
    EXTENDED_MINIMA
    Extended minima operation
  • Method Summary

    Modifier and Type Method Description
    ij.process.ImageProcessor apply​(ij.process.ImageProcessor image, int dynamic)
    Applies this operation to the specified image.
    ij.process.ImageProcessor apply​(ij.process.ImageProcessor image, int dynamic, int connectivity)
    Applies this operation to the specified image.
    ij.process.ImageProcessor apply​(ij.process.ImageProcessor image, int dynamic, Connectivity2D connectivity)
    Applies this operation to the specified image.
    static ExtendedMinAndMaxPlugin.Operation fromLabel​(java.lang.String opLabel)
    Determines the operation type from its label.
    static java.lang.String[] getAllLabels()
    Returns all the labels of this enum.
    java.lang.String getSuffix()
    Returns the suffix to add to new ImagePlus created with thin operation.
    java.lang.String toString()  
    static ExtendedMinAndMaxPlugin.Operation valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static ExtendedMinAndMaxPlugin.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 ExtendedMinAndMaxPlugin.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 ExtendedMinAndMaxPlugin.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, int dynamic)
      Applies this operation to the specified image.
      Parameters:
      image - the image to process
      dynamic - the dynamic to use
      Returns:
      the extended extrema within image, as a binary image.
    • apply

      public ij.process.ImageProcessor apply​(ij.process.ImageProcessor image, int dynamic, Connectivity2D connectivity)
      Applies this operation to the specified image.
      Parameters:
      image - the image to process
      dynamic - the dynamic to use
      connectivity - the connectivity to use
      Returns:
      the extended extrema within image, as a binary image.
    • apply

      public ij.process.ImageProcessor apply​(ij.process.ImageProcessor image, int dynamic, int connectivity)
      Applies this operation to the specified image.
      Parameters:
      image - the image to process
      dynamic - the dynamic to use
      connectivity - the connectivity to use
      Returns:
      the extended extrema within image, as a binary image.
    • toString

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

      public java.lang.String getSuffix()
      Returns the suffix to add to new ImagePlus created with thin operation.
      Returns:
      the suffix to add to new ImagePlus created with thin operation.
    • getAllLabels

      public static java.lang.String[] getAllLabels()
      Returns all the labels of this enum.
      Returns:
      all the labels of this enum.
    • fromLabel

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