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.DNG' with rawpy.imread(path) as raw: rgb = raw.postprocess() plt.imshow(rgb) plt.show() The result is an rgb picture array with 8-bit values while my camera generates 14 bit raw pictures. Visualizing the rgb array gives an expected result: From some googleing I understood that it is possible to import the same file but