Main MRPT website > C++ reference for MRPT 1.9.9
Namespaces | Enumerations | Functions
color_maps.h File Reference
#include <mrpt/typemeta/TEnumType.h>
Include dependency graph for color_maps.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mrpt
 This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
 
 mrpt::img
 

Enumerations

enum  mrpt::img::TColormap { mrpt::img::cmNONE = -1, mrpt::img::cmGRAYSCALE = 0, mrpt::img::cmJET, mrpt::img::cmHOT }
 Different colormaps for use in mrpt::img::colormap() More...
 

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]. More...
 
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]. More...
 
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. More...
 
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. More...
 
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. More...
 
 MRPT_FILL_ENUM_MEMBER (mrpt::img, cmNONE)
 
 MRPT_FILL_ENUM_MEMBER (mrpt::img, cmGRAYSCALE)
 
 MRPT_FILL_ENUM_MEMBER (mrpt::img, cmJET)
 
 MRPT_FILL_ENUM_MEMBER (mrpt::img, cmHOT)
 

Function Documentation

◆ MRPT_FILL_ENUM_MEMBER() [1/4]

MRPT_FILL_ENUM_MEMBER ( mrpt::img  ,
cmGRAYSCALE   
)

◆ MRPT_FILL_ENUM_MEMBER() [2/4]

MRPT_FILL_ENUM_MEMBER ( mrpt::img  ,
cmHOT   
)

◆ MRPT_FILL_ENUM_MEMBER() [3/4]

MRPT_FILL_ENUM_MEMBER ( mrpt::img  ,
cmJET   
)

◆ MRPT_FILL_ENUM_MEMBER() [4/4]

MRPT_FILL_ENUM_MEMBER ( mrpt::img  ,
cmNONE   
)



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST