Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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];