Main MRPT website > C++ reference for MRPT 1.5.7
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, mrpt::utils::cmHOT }
 Different colormaps for use in mrpt::utils::colormap() 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...
 
void BASE_IMPEXP mrpt::utils::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. More...
 

Enumeration Type Documentation

◆ TColormap

Different colormaps for use in mrpt::utils::colormap()

Enumerator
cmGRAYSCALE 
cmJET 
cmHOT 

[New in MRPT 1.5.0]

Definition at line 30 of file color_maps.h.

Function Documentation

◆ colormap()

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

◆ hot2rgb()

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

Definition at line 163 of file color_maps.cpp.

References mrpt::math::interpolate().

Referenced by mrpt::utils::colormap().

◆ hsv2rgb()

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

Definition at line 23 of file color_maps.cpp.

References min.

◆ jet2rgb()

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

◆ rgb2hsv()

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

Definition at line 56 of file color_maps.cpp.

References mrpt::utils::max3(), min, and mrpt::utils::min3().




Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019