34 static_cast<float>(in[1] / 255.0f),
35 static_cast<float>(in[0] / 255.0f));
50 static_cast<unsigned char>(in[1] * 255.0f),
51 static_cast<unsigned char>(in[0] * 255.0f));
63 return static_cast<unsigned char>(in * 255);
This node is a utility node that does a conversion from cv::Mat ( unsigned char storage; channel orde...
visioncpp::pixel::F32C3 operator()(visioncpp::pixel::U8C3 in)
float between [0.0f, 1.0f] to [0, 255] One channel GREY ( float ) is going to be converted to one cha...
unsigned char operator()(float in)
This node is a utility node that does a conversion from float with order of RGB to cv::Mat ( unsigned...
visioncpp::pixel::U8C3 operator()(visioncpp::pixel::F32C3 in)