Package ij

Class LookUpTable


  • public class LookUpTable
    extends Object
    This class represents a color look-up table.
    • Constructor Detail

      • LookUpTable

        public LookUpTable​(Image img)
        Constructs a LookUpTable object from an AWT Image.
      • LookUpTable

        public LookUpTable​(ColorModel cm)
        Constructs a LookUpTable object from a ColorModel.
    • Method Detail

      • getMapSize

        public int getMapSize()
      • getReds

        public byte[] getReds()
      • getGreens

        public byte[] getGreens()
      • getBlues

        public byte[] getBlues()
      • getColorModel

        public ColorModel getColorModel()
      • drawColorBar

        public void drawColorBar​(Graphics g,
                                 int x,
                                 int y,
                                 int width,
                                 int height)
      • drawUnscaledColorBar

        public void drawUnscaledColorBar​(ImageProcessor ip,
                                         int x,
                                         int y,
                                         int width,
                                         int height)
      • createGrayscaleColorModel

        public static ColorModel createGrayscaleColorModel​(boolean invert)