public class LUT
extends java.awt.image.IndexColorModel
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
double |
max |
double |
min |
static java.lang.String |
nameKey |
Constructor and 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(java.awt.image.IndexColorModel cm,
double min,
double max) |
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.
|
Modifier and Type | Method and 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() |
convertToIntDiscrete, createCompatibleSampleModel, createCompatibleWritableRaster, finalize, getAlpha, getAlphas, getBlue, getBlues, getComponents, getComponents, getComponentSize, getDataElement, getDataElements, getDataElements, getGreen, getGreens, getMapSize, getRed, getReds, getRGB, getRGBs, getTransparency, getTransparentPixel, getValidPixels, isCompatibleRaster, isCompatibleSampleModel, isValid, isValid
coerceData, equals, getAlpha, getAlphaRaster, getBlue, getColorSpace, getComponentSize, getDataElement, getDataElements, getGreen, getNormalizedComponents, getNormalizedComponents, getNumColorComponents, getNumComponents, getPixelSize, getRed, getRGB, getRGBdefault, getTransferType, getUnnormalizedComponents, hasAlpha, hashCode, isAlphaPremultiplied
public static final java.lang.String nameKey
public double min
public double max
public LUT(byte[] r, byte[] g, byte[] b)
public LUT(int bits, int size, byte[] r, byte[] g, byte[] b)
public LUT(java.awt.image.IndexColorModel cm, double min, double max)
public java.awt.image.IndexColorModel getColorModel()
public byte[] getBytes()
public LUT createInvertedLut()
public static LUT createLutFromColor(java.awt.Color color)
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.awt.image.IndexColorModel