problem is not really imshow() here (more like maths):
255 == 0xff == 1 << 8 == white for an 8bit image
to achieve the same for 16bits, you need to initialize it with 0xffff or 1 << 16
problem is not really imshow() here (more like maths):
255 == 0xff == 1 << 8 == white for an 8bit image
to achieve the same for 16bits, you need to initialize it with 0xffff or 1 << 16