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