How to convert a 16-bit to an 8-bit image in OpenCV?
Yes you can in Python. To get the expected result, choose a method based on what you want the values mapped from say uint16 to uint8 be.
For instance,
if you do    img8 = (img16/256).astype('uint8') values below 256 are mapped to 0
if you do    img8 = img16.astype('uint8') values above 255 are mapped to 0
In the LUT method as described and corrected above, you have to define the mapping.
I have a 16-bit grayscale image and I want to convert it to an 8-bit grayscale image in OpenCV for Python to use it with various functions (like findContours etc.). How can I do this in Python?