<div dir="ltr">If you use vtkWindowToImageFilter, the retrieved data is always 8 bits per channel.  If you need higher precision, you can try directly calling the GetRGBAPixelData() method of the vtkRenderWindow, which retrieves the data as an array of floats.  Whether this actually gives you the precision you desire will depend on the bit depth of the OpenGL color buffer.<div><br></div><div>Also note that the vtkLookupTable and much of VTK's internal color handling assumes 8 bits per channel.</div><div><br></div><div> - David<br><div>  <div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 21, 2018 at 4:56 AM, Sophonet <span dir="ltr"><<a href="mailto:vtk12af6bc42@kant.sophonet.de" target="_blank">vtk12af6bc42@kant.sophonet.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi list,<br>
<br>
using OSMesa for offscreen rendering (and VTK 8.1.0) I would like to save the renderwindow content (vtkWindowToImageFilter) with 16 bits per color channel to file. PNG would support 16 bits per channel (<a href="https://en.wikipedia.org/wiki/Portable_Network_Graphics" rel="noreferrer" target="_blank">https://en.wikipedia.org/wiki<wbr>/Portable_Network_Graphics</a>), but I am wondering how to set things up via VTK. Any hint?<br>
<br>
Thanks,<br>
<br>
    sophonet<br></blockquote></div></div></div></div></div></div>