Enum NamedLookupTable

java.lang.Object
java.lang.Enum<NamedLookupTable>
imagingbook.common.ij.NamedLookupTable
All Implemented Interfaces:
Serializable, Comparable<NamedLookupTable>, java.lang.constant.Constable

This enum type wraps a selection of ImageJ's lookup tables (originally defined in class LutLoader).
Version:
2022/09/15 converted to enum type
See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static NamedLookupTable[] 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 NamedLookupTable valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getLUT

      public LUT getLUT()
      Returns the actual lookup table for this named item.
      Returns:
      the associated LUT instance
    • create

      public static LUT create(byte[] r, byte[] g, byte[] b)
      Create a new lookup-table from three RGB arrays of length 256.
      Parameters:
      r - Red component values.
      g - Green component values.
      b - Blue component values.
      Returns:
      A new instance of type LUT.
    • listCurrentLut

      public static void listCurrentLut(ImageProcessor ip)
      Lists the contents of the lookup-table currently associated with the specified image.
      Parameters:
      ip - the image.
    • brightLut

      public static void brightLut(ImageProcessor ip, int minGray)
      Modifies the lookup table to display a bright image with gray values in the range minGray ... 255. Does nothing if ip is of type ColorProcessor.
      Parameters:
      ip - the target image.
      minGray - minimum gray value.