public class ShortLookupTable extends LookupTable
| Constructor and Description |
|---|
ShortLookupTable(int offset,
short[] data)
Creates a new
ShortLookupTable instance. |
ShortLookupTable(int offset,
short[][] data)
Creates a new
ShortLookupTable instance. |
| Modifier and Type | Method and Description |
|---|---|
short[][] |
getTable()
Return the lookup tables.
|
int[] |
lookupPixel(int[] src,
int[] dst)
Return translated values for a pixel.
|
short[] |
lookupPixel(short[] src,
short[] dst)
Return translated values for a pixel.
|
getNumComponents, getOffsetpublic ShortLookupTable(int offset, short[][] data) throws IllegalArgumentException
ShortLookupTable instance.
Offset is subtracted from pixel values when looking up in the translation
tables. If data.length is one, the same table is applied to all pixel
components.offset - Offset to be subtracted.data - Array of lookup tables.IllegalArgumentException - if offset < 0 or data.length < 1.public ShortLookupTable(int offset, short[] data) throws IllegalArgumentException
ShortLookupTable instance.
Offset is subtracted from pixel values when looking up in the translation
table. The same table is applied to all pixel components.offset - Offset to be subtracted.data - Lookup table for all components (null not
permitted).IllegalArgumentException - if offset < 0.public final short[][] getTable()
public int[] lookupPixel(int[] src, int[] dst) throws ArrayIndexOutOfBoundsException
lookupPixel in class LookupTablesrc - Component values of a pixel.dst - Destination array for values, or null.ArrayIndexOutOfBoundsExceptionpublic short[] lookupPixel(short[] src, short[] dst) throws ArrayIndexOutOfBoundsException
src - Component values of a pixel.dst - Destination array for values, or null.ArrayIndexOutOfBoundsException