Package net.imglib2.display
Interface ColorTable
- All Known Subinterfaces:
ArrayColorTable<T>
- All Known Implementing Classes:
AbstractArrayColorTable
,ColorTable16
,ColorTable8
public interface ColorTable
- Author:
- Aivar Grislis
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionint
get
(int comp, int bin) Gets an individual value from the color table.int
Gets the number of color components in the table (typically 3 for RGB or 4 for RGBA).int
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 Details
-
RED
static final int RED- See Also:
-
GREEN
static final int GREEN- See Also:
-
BLUE
static final int BLUE- See Also:
-
ALPHA
static final int ALPHA- See Also:
-
-
Method Details
-
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.
-