Package net.imglib2.display
Interface ColorTable
-
- All Known Subinterfaces:
ArrayColorTable<T>
- All Known Implementing Classes:
AbstractArrayColorTable
,ColorTable16
,ColorTable8
public interface ColorTable
- Author:
- Aivar Grislis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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).int
getLength()
Gets the number of elements for each color component in the table.int
getResampled(int comp, int bins, int bin)
Gets an individual value from a color table with given number of bins.int
lookupARGB(double min, double max, double value)
-
-
-
Field Detail
-
RED
static final int RED
- See Also:
- Constant Field Values
-
GREEN
static final int GREEN
- See Also:
- Constant Field Values
-
BLUE
static final int BLUE
- See Also:
- Constant Field Values
-
ALPHA
static final int ALPHA
- See Also:
- Constant Field Values
-
-
Method Detail
-
lookupARGB
int lookupARGB(double min, double max, double value)
-
getComponentCount
int getComponentCount()
Gets the number of color components in the table (typically 3 for RGB or 4 for RGBA).
-
getLength
int getLength()
Gets the number of elements for each color component in the table.
-
get
int get(int comp, int bin)
Gets an individual value from the color table.- Parameters:
comp
- The color component to query.bin
- The index into the color table.- Returns:
- The value of the table at the specified position.
-
getResampled
int getResampled(int comp, int bins, int bin)
Gets an individual value from a color table with given number of bins.- Parameters:
comp
- The color component to query.bins
- The total number of bins.bin
- The index into the color table.- Returns:
- The value of the table at the specified position.
-
-