First time here? Check out the FAQ!
answered 2015-06-07 01:04:00 -0600
The issue solved. I wrote the conversion in c++ code - loop on floatImg.data an convert each pixel to uchar.
ucharImg.data[i] = (uchar)((float)floatImg.data)[i];