Class LUT
- All Implemented Interfaces:
Transparency, Cloneable
This is an indexed color model that allows an
lower and upper bound to be specified.
-
Field Summary
FieldsFields inherited from class ColorModel
pixel_bits, transferTypeFields inherited from interface Transparency
BITMASK, OPAQUE, TRANSLUCENT -
Constructor Summary
ConstructorsConstructorDescriptionLUT(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(IndexColorModel cm, double min, double max) -
Method Summary
Modifier and TypeMethodDescriptionclone()static LUTcreateLutFromColor(Color color) Creates a color LUT from a Color.byte[]getBytes()static booleanLutsDiffer(ImagePlus imp1, ImagePlus imp2) Returns 'true' if the LUTs of the two images differ.toString()Methods inherited from class IndexColorModel
convertToIntDiscrete, createCompatibleSampleModel, createCompatibleWritableRaster, equals, getAlpha, getAlphas, getBlue, getBlues, getComponents, getComponents, getComponentSize, getDataElement, getDataElements, getDataElements, getGreen, getGreens, getMapSize, getRed, getReds, getRGB, getRGBs, getTransparency, getTransparentPixel, getValidPixels, hashCode, isCompatibleRaster, isCompatibleSampleModel, isValid, isValidMethods inherited from class ColorModel
coerceData, getAlpha, getAlphaRaster, getBlue, getColorSpace, getComponentSize, getDataElement, getDataElements, getGreen, getNormalizedComponents, getNormalizedComponents, getNumColorComponents, getNumComponents, getPixelSize, getRed, getRGB, getRGBdefault, getTransferType, getUnnormalizedComponents, hasAlpha, isAlphaPremultiplied
-
Field Details
-
nameKey
- See Also:
-
min
public double min -
max
public double max
-
-
Constructor Details
-
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
-
-
Method Details
-
getColorModel
-
getBytes
public byte[] getBytes() -
createInvertedLut
-
createLutFromColor
-
clone
-
toString
- Overrides:
toStringin classIndexColorModel
-
LutsDiffer
-