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.
You need to scale the results, so multiply or divide by 255 or 65536, etc. Look more closely at that function.