On Tue, Dec 14, 2010 at 8:28 PM, finsher <span dir="ltr">&lt;<a href="mailto:zhuyinghua01@gmail.com">zhuyinghua01@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
I read from BMP file, and need to convert the data to 0--4095 and display<br>
that . how to do that?<br>
</blockquote></div><br><div>You can use vtkImageShiftScale with these settings:</div><div>SetScale(4095.0/255.0)</div><div>SetOutputScalarTypeToUnsignedShort()</div><div><br></div><div> - David</div><div><br></div>