Function lvr2::floatToGrayScaleColor
Defined in File ColorAlgorithms.hpp
Function Documentation
-
inline RGB8Color lvr2::floatToGrayScaleColor(float value)
Convert a given float to an 8-bit Grayscale-Color.
The given float, which we want to convert to an 8-bit GrayScale-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 a Grayscale-Color.
- Returns:
The 8-bit Grayscale-Color.