Conversion 16bit image to 8 bit image
Hello ,
How to convert 16bit image to 8bit image without loosing information.
dst.convertTo(src, CV_8UC1);
I used convertTo() function but it losses information , it is not same as src image.
Is it possible to convert 16 bit image to 8bit image?
Does this help?
No still its losses information i tried.
How about his one?
In my code. I used numpy for python.
@supra56, please, no deprecated c-api attempts here (it's all DEADBEEF)
@berak. Sorry. I was sitting next to my friend.
In opencv with c++ it is not possible?
impossible, irrespective of the language (why did you expect anything else ?). you simply loose half of the bits
yes correct. but processing on 16 bit image is little bit difficult.
I think that processing on 16-bit image is not that difficult. What do you want to do exactly?