public abstract class LookupTable extends Object
ByteLookupTable,
ShortLookupTable| Modifier | Constructor and Description |
|---|---|
protected |
LookupTable(int offset,
int numComponents)
Creates a new
LookupTable instance. |
| Modifier and Type | Method and Description |
|---|---|
int |
getNumComponents()
Return the number of components.
|
int |
getOffset()
Return the offset.
|
abstract int[] |
lookupPixel(int[] src,
int[] dest)
Return translated values for a pixel.
|
protected LookupTable(int offset, int numComponents) throws IllegalArgumentException
LookupTable instance.
If numComponents is 1, the same translation table is used for all pixel
components.offset - Offset to be subtracted.numComponents - Number of image components.IllegalArgumentException - if offset < 0 or numComponents < 1.public int getNumComponents()
public int getOffset()
public abstract int[] lookupPixel(int[] src, int[] dest)
src - Component values of a pixel.dest - Destination array for values, or null.