Function swri_image_util::JetColorMap
Defined in File draw_util.h
Function Documentation
-
void swri_image_util::JetColorMap(unsigned char &r, unsigned char &g, unsigned char &b, float value, float min, float max)
Map a scalar value to a color gradient.
Return a color gradient RGB value by mapping an input value to a specified scale.
- Parameters:
r – [out] Red channel of the output gradient color.
g – [out] Green channel of the output gradient color.
b – [out] Blue channel of the output gradient color.
value – [in] The input value to be mapped to a color.
min – [in] The minimum value on the gradient scale.
max – [in] The maximum value on the gradient scale.