30 const float FLOAT_TO_BYTE = 255.0f;
35 float bH = (float)(in[0] * 180.0f);
36 float bS = (float)(in[1] * FLOAT_TO_BYTE);
37 float bV = (float)(in[2] * FLOAT_TO_BYTE);
40 static_cast<unsigned char>(bS),
41 static_cast<unsigned char>(bV));
Storage< unsigned char, 3 > U8C3
This functor allows displaying HSV.
visioncpp::pixel::U8C3 operator()(visioncpp::pixel::F32C3 in)