Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Convert Images (cv::Mat)

Hi,

If I want to use the "convertTo" method to convert gray images, I don't get good results. Be it from 8 to 16, 16 to 8, 16 to 32... I always get very noisy images as output.

for example like this:

src.convertTo(dst, CV_32F);

This line is from here: docu

sometimes openCV is so incomprehensible and unnecessarily complicated can anyone help me? Just convert images from one bit depth to another. So if e.g. 16Bit pictures have a range of 0-65536, the 8Bit pictures should have a range of 0-255. This means that the value 65536 should be mapped to 255 in an 8Bit image etc. or ? The output image should look like the input image. In this example from 16 to 8 there should be less grayscale.