Main MRPT website > C++ reference for MRPT 1.3.2
Enumerations | Functions
Color map functions (in #include <mrpt/utils/color_maps.h>)

Detailed Description

Collaboration diagram for Color map functions (in #include <mrpt/utils/color_maps.h>):

Enumerations

enum  mrpt::utils::TColormap { mrpt::utils::cmGRAYSCALE = 0, mrpt::utils::cmJET }
 Different colormaps. More...
 

Functions

void BASE_IMPEXP mrpt::utils::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]. More...
 
void BASE_IMPEXP mrpt::utils::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]. More...
 
void BASE_IMPEXP mrpt::utils::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. More...
 
void BASE_IMPEXP mrpt::utils::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. More...
 

Enumeration Type Documentation

§ TColormap

Different colormaps.

See also
mrpt::vision::colormap
Enumerator
cmGRAYSCALE 
cmJET 

Definition at line 48 of file color_maps.h.

Function Documentation

§ colormap()

void BASE_IMPEXP mrpt::utils::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.

§ hsv2rgb()

void BASE_IMPEXP mrpt::utils::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

§ jet2rgb()

void BASE_IMPEXP mrpt::utils::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

§ rgb2hsv()

void BASE_IMPEXP mrpt::utils::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



Page generated by Doxygen 1.8.12 for MRPT 1.3.2 SVN: at Thu Nov 10 13:46:27 UTC 2016