public class ColorTable8 extends AbstractArrayColorTable<byte[]>
values
ALPHA, BLUE, GREEN, RED
Constructor and Description |
---|
ColorTable8()
Initializes an 8-bit color table with a linear grayscale ramp.
|
ColorTable8(byte[]... values)
Initializes an 8-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 comp,
int bin)
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 ColorTable8()
public ColorTable8(byte[]... 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<byte[]>
comp
- The color component to query.bin
- The index into the color table.public int getNative(int comp, int bin)
ArrayColorTable
Value is unsigned with ArrayColorTable.getBits()
bits.
comp
- The color component to query.bin
- 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<byte[]>
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.