public class ColorTable16 extends AbstractArrayColorTable<short[]>
valuesALPHA, BLUE, GREEN, RED| Constructor and Description |
|---|
ColorTable16()
Initializes a 16-bit color table with a linear grayscale ramp.
|
ColorTable16(short[]... values)
Initializes a 16-bit color table with the given table values.
|
| Modifier and Type | Method and Description |
|---|---|
int |
get(int comp,
int bin)
Gets an individual value from the color table.
|
int |
getBits()
Gets the number of bits in each color component value.
|
int |
getLength()
Gets the number of elements for each color component in the table.
|
int |
getNative(int c,
int i)
Gets an individual value from the color table.
|
int |
getResampled(int comp,
int bins,
int bin)
Gets an individual value from a color table with given number of bins.
|
argb, getComponentCount, getValues, lookupARGBpublic ColorTable16()
public ColorTable16(short[]... values)
public int getLength()
ColorTablepublic int getBits()
ArrayColorTablepublic int get(int comp,
int bin)
AbstractArrayColorTableValue is unsigned 8 bits.
get in interface ColorTableget in class AbstractArrayColorTable<short[]>comp - The color component to query.bin - The index into the color table.public int getNative(int c,
int i)
ArrayColorTable
Value is unsigned with ArrayColorTable.getBits() bits.
c - The color component to query.i - The index into the color table.public int getResampled(int comp,
int bins,
int bin)
AbstractArrayColorTableValue is unsigned 8 bits.
getResampled in interface ColorTablegetResampled in class AbstractArrayColorTable<short[]>comp - The color component to query.bins - The total number of bins.bin - The index into the color table.Copyright © 2015–2022 ImgLib2. All rights reserved.