public class UByteColorModel extends IcyColorModel
Constructor and Description |
---|
UByteColorModel(int numComponents,
int[] bits)
Define a new UByteColorModel
|
Modifier and Type | Method and Description |
---|---|
int[] |
getComponents(java.lang.Object pixel,
int[] components,
int offset) |
java.lang.Object |
getDataElements(float[] normComponents,
int offset,
java.lang.Object obj) |
java.lang.Object |
getDataElements(int[] components,
int offset,
java.lang.Object obj) |
float[] |
getNormalizedComponents(java.lang.Object pixel,
float[] normComponents,
int normOffset) |
int |
getRGB(java.lang.Object pixel) |
int |
getRGB(java.lang.Object pixel,
LUT lut)
Same as getRGB but by using the specified LUT instead of internal one
|
addListener, beginUpdate, coerceData, colorSpaceChanged, copyBounds, copyColormap, createCompatibleSampleModel, createCompatibleSampleModel, createCompatibleWritableRaster, createInstance, createInstance, createInstance, createInstance, createWritableRaster, createWritableRaster, endUpdate, equals, fireEvent, getAlpha, getAlpha, getBlue, getBlue, getColormap, getColorMap, getColormapScalers, getComponentAbsBounds, getComponentAbsMaxValue, getComponentAbsMinValue, getComponents, getComponentUserBounds, getComponentUserMaxValue, getComponentUserMinValue, getDataElement, getDataElement, getDataElements, getDataType_, getDataType, getDefaultComponentBounds, getGreen, getGreen, getIcyColorSpace, getNormalizedComponents, getNormalScalers, getNumComponents, getRed, getRed, getUnnormalizedComponents, hasLinearColormaps, isCompatible, isCompatibleRaster, isCompatibleSampleModel, isFloatDataType, isSignedDataType, isUpdating, onChanged, removeListener, scalerChanged, setBounds, setColormap, setColorMap, setColormaps, setColorMaps, setColorSpace, setComponentAbsBounds, setComponentAbsBounds, setComponentAbsMaxValue, setComponentAbsMinValue, setComponentsAbsBounds, setComponentsUserBounds, setComponentUserBounds, setComponentUserBounds, setComponentUserMaxValue, setComponentUserMinValue, toString
public UByteColorModel(int numComponents, int[] bits)
numComponents
- number of componentbits
- public int getRGB(java.lang.Object pixel)
getRGB
in class IcyColorModel
public int getRGB(java.lang.Object pixel, LUT lut)
getRGB
in class IcyColorModel
ColorModel.getRGB(java.lang.Object)
public int[] getComponents(java.lang.Object pixel, int[] components, int offset)
getComponents
in class IcyColorModel
ColorModel.getComponents(Object, int[], int)
public java.lang.Object getDataElements(int[] components, int offset, java.lang.Object obj)
getDataElements
in class IcyColorModel
ColorModel.getDataElements(int[], int, Object)
public java.lang.Object getDataElements(float[] normComponents, int offset, java.lang.Object obj)
getDataElements
in class IcyColorModel
ColorModel.getDataElements(float[], int, Object)
public float[] getNormalizedComponents(java.lang.Object pixel, float[] normComponents, int normOffset)
getNormalizedComponents
in class IcyColorModel
ColorModel.getNormalizedComponents(Object, float[], int)