Color map functions (in #include

Overview

<mrpt/img/color_maps.h>)

// enums

enum mrpt::img::TColormap;

// global functions

mrpt::img::TColorf mrpt::img::hsv2rgb(float h, float s, float v);
std::tuple<float, float, float> mrpt::img::rgb2hsv(float r, float g, float b);
mrpt::img::TColorf mrpt::img::colormap(const TColormap& color_map, float color_index);
mrpt::img::TColorf mrpt::img::jet2rgb(float color_index);
mrpt::img::TColorf mrpt::img::hot2rgb(float color_index);

Global Functions

mrpt::img::TColorf mrpt::img::hsv2rgb(float h, float s, float v)

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

See also:

rgb2hsv

std::tuple<float, float, float> mrpt::img::rgb2hsv(float r, float g, float b)

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

See also:

hsv2rgb

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

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

Different colormaps are available. The returned TColorf can be converted to TColor() with col.asTColor();

mrpt::img::TColorf mrpt::img::jet2rgb(float color_index)

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

mrpt::img::TColorf mrpt::img::hot2rgb(float color_index)

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