public class ColorTable16 extends AbstractArrayColorTable<short[]>
values
ALPHA, 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, lookupARGB
public ColorTable16()
public ColorTable16(short[]... values)
public int getLength()
ColorTable
public int getBits()
ArrayColorTable
public int get(int comp, int bin)
AbstractArrayColorTable
Value is unsigned 8 bits.
get
in interface ColorTable
get
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)
AbstractArrayColorTable
Value is unsigned 8 bits.
getResampled
in interface ColorTable
getResampled
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.