org.jscience.media.pictures.filters
Interface Colormap

All Known Implementing Classes:
ArrayColormap, Gradient, GrayscaleColormap, LinearColormap, SplineColormap

public interface Colormap

An interface for color maps. These are passed to filters which convert gray values to colors. This is similar to the ColorModel class but works with floating point values.


Method Summary
 int getColor(float v)
          Convert a value in the range 0..1 to an RGB color.
 

Method Detail

getColor

int getColor(float v)
Convert a value in the range 0..1 to an RGB color.

Parameters:
v - a value in the range 0..1
Returns:
an RGB color