29 const float FLOAT_TO_BYTE = 255.0f;
31 static_cast<unsigned char>(in[0] * FLOAT_TO_BYTE),
32 static_cast<unsigned char>(in[1] * FLOAT_TO_BYTE),
33 static_cast<unsigned char>(in[2] * FLOAT_TO_BYTE));
Storage< unsigned char, 3 > U8C3
This functor performs conversion from [0.0f, 1.0f] to [0, 255].
visioncpp::pixel::U8C3 operator()(visioncpp::pixel::F32C3 in)