title: DNG raw pictures imported as 16 bit deep but unexpected plt.show() result
body: <p>Trying to process raw DNG pictures in Python with <code>rawpy</code> ends with strange results.</p>
  
  <pre><code>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()
  </code></pre>
  
  <p>The result is an rgb picture array with 8-bit values while my camera generates 14 bit raw pictures.</p>
  
  <p>Visualizing the <code>rgb</code> array gives an expected result:</p>
  
  <p><a href="https://i.stack.imgur.com/MV8fP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MV8fP.png" alt="enter image description here"></a></p>
  
  <p>From some googleing I understood that it is possible to import the same file but with an output in 16-bit.</p>
  
  <p>I used the following parameters in the postprocess function:</p>
  
  <pre><code>rgb = raw.postprocess(output_bps=16,demosaic_algorithm=None,output_color = rawpy.ColorSpace.Adobe)
  </code></pre>
  
  <p>Now the <code>rgb</code> array contains 16 bit values but visualizing results in the following:</p>
  
  <p><a href="https://i.stack.imgur.com/TdJxL.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TdJxL.jpg" alt="enter image description here"></a></p>
  
  <p>Could someone tell me how I could obtain a visualization similar to the first result but handling 16-bit values?</p>
  
  <p>Initially I thought it was related to the fact that my camera is producing 14 bit images rather than 16 bit, but changing the parameter <code>output_bps</code> into 14 gives even worse visualization results.</p>
  
  <p>Thanks in advance!</p>
  
  <p>On request, I would add here the raw picture from a PENTAX K-5 but it is 18MB big and the forum has a limit of 2MB (may be another way to pass you the file?).</p>