public abstract class AbstractArrayColorTable<T> extends Object implements ArrayColorTable<T>
Modifier and Type | Field and Description |
---|---|
protected T[] |
values
Actual color table values.
|
ALPHA, BLUE, GREEN, RED
Constructor and Description |
---|
AbstractArrayColorTable(T... values)
Initializes a color table with the given table values.
|
Modifier and Type | Method and Description |
---|---|
int |
argb(int i)
Converts the tuple at the given position into a packed ARGB value.
|
abstract int |
get(int comp,
int bin)
Gets an individual value from the color table.
|
int |
getComponentCount()
Gets the number of color components in the table (typically 3 for RGB or
4 for RGBA).
|
abstract int |
getResampled(int comp,
int bins,
int bin)
Gets an individual value from a color table with given number of bins.
|
T[] |
getValues()
Gets a copy of the entire color table.
|
int |
lookupARGB(double min,
double max,
double value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBits, getNative
getLength
protected final T[] values
public AbstractArrayColorTable(T... values)
public T[] getValues()
ArrayColorTable
getValues
in interface ArrayColorTable<T>
public int argb(int i)
ArrayColorTable
argb
in interface ArrayColorTable<T>
public int lookupARGB(double min, double max, double value)
lookupARGB
in interface ColorTable
public int getComponentCount()
ColorTable
getComponentCount
in interface ColorTable
public abstract int get(int comp, int bin)
Value is unsigned 8 bits.
get
in interface ColorTable
comp
- The color component to query.bin
- The index into the color table.public abstract int getResampled(int comp, int bins, int bin)
Value is unsigned 8 bits.
getResampled
in interface ColorTable
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.