Color map functions (in #include

<mrpt/img/color_maps.h>)

// enums

enum mrpt::img::TColormap;

// global functions

void mrpt::img::hsv2rgb(float h, float s, float v, float& r, float& g, float& b);
void mrpt::img::rgb2hsv(float r, float g, float b, float& h, float& s, float& v);
void mrpt::img::colormap(const TColormap& color_map, const float color_index, float& r, float& g, float& b);

mrpt::img::TColor mrpt::img::colormap(
    const TColormap& color_map,
    const float color_index
    );

void mrpt::img::jet2rgb(const float color_index, float& r, float& g, float& b);
void mrpt::img::hot2rgb(const float color_index, float& r, float& g, float& b);

Global Functions

void mrpt::img::hsv2rgb(float h, float s, float v, float& r, float& g, float& b)

Transform HSV color components to RGB, all of them in the range [0,1].

See also:

rgb2hsv

void mrpt::img::rgb2hsv(float r, float g, float b, float& h, float& s, float& v)

Transform RGB color components to HSV, all of them in the range [0,1].

See also:

hsv2rgb

void mrpt::img::colormap(
    const TColormap& color_map,
    const float color_index,
    float& r,
    float& g,
    float& b
    )

Transform a float number in the range [0,1] into RGB components.

Different colormaps are available.

void mrpt::img::jet2rgb(const float color_index, float& r, float& g, float& b)

Computes the RGB color components (range [0,1]) for the corresponding color index in the range [0,1] using the MATLAB ‘jet’ colormap.

See also:

colormap

void mrpt::img::hot2rgb(const float color_index, float& r, float& g, float& b)

Computes the RGB color components (range [0,1]) for the corresponding color index in the range [0,1] using the MATLAB ‘hot’ colormap.

See also:

colormap