Function lvr2::floatToRainbowColor
Defined in File ColorAlgorithms.hpp
Function Documentation
-
inline RGB8Color lvr2::floatToRainbowColor(float value)
Convert a given float to an 8-bit RGB-Color, using the rainbowcolor scale.
The given float, which we want to convert to an 8-bit RGB-Color, has to be in [0, 1]. If it is bigger than 1 it’s value is set to 1. If it is smaller than 0 it’s value is set to 0.
- Parameters:
value – The float value, which will be converted to an RGB-Rainbowcolor.
- Returns:
The 8-bit RGB-Color, interpreted as rainbowcolor.