DNG Raw Pictures Imported As 16 Bit Deep But Unexpected Plt.show() Result
Trying to process raw DNG pictures in Python with rawpy ends with strange results. import rawpy import imageio from matplotlib import pyplot as plt path = '/home/stefan/AIJ/RAW.DN
Solution 1:
I don't think the issue has to do with how you are reading the image, as imshow
does not display 16-bit RGB images. So, if you are interested in visually checking the results of reading in the 16-bit image, I would suggest either inspecting bands individually, with
plt.imshow(rgb[:, :, 0])
and so on for each band; or converting the rgb to 8-bit and displaying that, with
rgb8 = (rgb / 256).astype('uint8')
plt.imshow(rgb8)
Post a Comment for "DNG Raw Pictures Imported As 16 Bit Deep But Unexpected Plt.show() Result"