ij.process
Class LUT
java.lang.Object
java.awt.image.ColorModel
java.awt.image.IndexColorModel
ij.process.LUT
- All Implemented Interfaces:
- Transparency, Cloneable
public class LUT
- extends IndexColorModel
- implements Cloneable
This is an indexed color model that allows an
lower and upper bound to be specified.
|
Field Summary |
double |
max
|
double |
min
|
|
Constructor Summary |
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(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. |
| Methods inherited from class java.awt.image.IndexColorModel |
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 |
| Methods inherited from class java.awt.image.ColorModel |
coerceData, equals, getAlpha, getAlphaRaster, getBlue, getColorSpace, getComponentSize, getDataElement, getDataElements, getGreen, getNormalizedComponents, getNormalizedComponents, getNumColorComponents, getNumComponents, getPixelSize, getRed, getRGB, getRGBdefault, getTransferType, getUnnormalizedComponents, hasAlpha, hashCode, isAlphaPremultiplied |
min
public double min
max
public double max
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(IndexColorModel cm,
double min,
double max)
getBytes
public byte[] getBytes()
createInvertedLut
public LUT createInvertedLut()
createLutFromColor
public static LUT createLutFromColor(Color color)
- Creates a color LUT from a Color.
clone
public Object clone()
- Overrides:
clone in class Object
toString
public String toString()
- Overrides:
toString in class IndexColorModel
Copyright © 1997–2015 NIH. All rights reserved.