Module ij
Package ij.process

Class LUT

  • All Implemented Interfaces:
    java.awt.Transparency, java.lang.Cloneable

    public class LUT
    extends java.awt.image.IndexColorModel
    implements java.lang.Cloneable
    This is an indexed color model that allows an lower and upper bound to be specified.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      double max  
      double min  
      static java.lang.String nameKey  
      • Fields inherited from class java.awt.image.ColorModel

        pixel_bits, transferType
      • Fields inherited from interface java.awt.Transparency

        BITMASK, OPAQUE, TRANSLUCENT
    • Constructor Summary

      Constructors 
      Constructor Description
      LUT​(byte[] r, byte[] g, byte[] b)
      Constructs a LUT from red, green and blue byte arrays, which must have a length of 256.
      LUT​(int bits, int size, byte[] r, byte[] g, byte[] b)
      Constructs a LUT from red, green and blue byte arrays, where 'bits' must be 8 and 'size' must be less than or equal to 256.
      LUT​(java.awt.image.IndexColorModel cm, double min, double max)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()  
      LUT createInvertedLut()  
      static LUT createLutFromColor​(java.awt.Color color)
      Creates a color LUT from a Color.
      byte[] getBytes()  
      java.awt.image.IndexColorModel getColorModel()  
      java.lang.String toString()  
      • Methods inherited from class java.awt.image.IndexColorModel

        convertToIntDiscrete, createCompatibleSampleModel, createCompatibleWritableRaster, equals, finalize, getAlpha, getAlphas, getBlue, getBlues, getComponents, getComponents, getComponentSize, getDataElement, getDataElements, getDataElements, getGreen, getGreens, getMapSize, getRed, getReds, getRGB, getRGBs, getTransparency, getTransparentPixel, getValidPixels, hashCode, isCompatibleRaster, isCompatibleSampleModel, isValid, isValid
      • Methods inherited from class java.awt.image.ColorModel

        coerceData, getAlpha, getAlphaRaster, getBlue, getColorSpace, getComponentSize, getDataElement, getDataElements, getGreen, getNormalizedComponents, getNormalizedComponents, getNumColorComponents, getNumComponents, getPixelSize, getRed, getRGB, getRGBdefault, getTransferType, getUnnormalizedComponents, hasAlpha, isAlphaPremultiplied
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • min

        public double min
      • max

        public double max
    • Constructor Detail

      • LUT

        public LUT​(byte[] r,
                   byte[] g,
                   byte[] b)
        Constructs a LUT from red, green and blue byte arrays, which must have a length of 256.
      • LUT

        public LUT​(int bits,
                   int size,
                   byte[] r,
                   byte[] g,
                   byte[] b)
        Constructs a LUT from red, green and blue byte arrays, where 'bits' must be 8 and 'size' must be less than or equal to 256.
      • LUT

        public LUT​(java.awt.image.IndexColorModel cm,
                   double min,
                   double max)
    • Method Detail

      • getColorModel

        public java.awt.image.IndexColorModel getColorModel()
      • getBytes

        public byte[] getBytes()
      • createInvertedLut

        public LUT createInvertedLut()
      • createLutFromColor

        public static LUT createLutFromColor​(java.awt.Color color)
        Creates a color LUT from a Color.
      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.awt.image.IndexColorModel