Go to the documentation of this file.
23 void hsv2rgb(
float h,
float s,
float v,
float& r,
float& g,
float& b);
27 void rgb2hsv(
float r,
float g,
float b,
float& h,
float& s,
float& v);
43 const TColormap& color_map,
const float color_index,
float& r,
float& g,
51 void jet2rgb(
const float color_index,
float& r,
float& g,
float& b);
55 void hot2rgb(
const float color_index,
float& r,
float& g,
float& b);
TColormap
Different colormaps for use in mrpt::img::colormap()
#define MRPT_ENUM_TYPE_END()
void 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.
@ cmHOT
[New in MRPT 1.5.0]
#define MRPT_ENUM_TYPE_BEGIN(_ENUM_TYPE_WITH_NS)
void 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,...
@ cmNONE
Undefined colormap [New in MRPT 2.0].
void 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,...
void 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].
void 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].
MRPT_FILL_ENUM_MEMBER(mrpt::img, cmNONE)
Page generated by Doxygen 1.8.17 for MRPT 2.0.3 at Fri May 15 15:49:54 UTC 2020 | |