Hi,<br><br>I used to write short VTK python scripts for processing high number of files. In your case, it could be a simple loop on our files that, for each, do<br>- Read<br>- Cast to unsigned char (vtkImageCast -> be careful of type conversion. vtkImageShiftScale could be another solution)<br>
- Write<br><br>If I understood your problem...<br><br>Best regards,<br><br>Jerome<br><br><div class="gmail_quote">2009/4/19 Divya Rathore <span dir="ltr"><<a href="mailto:divyarathore@gmail.com">divyarathore@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi All,<br><br>I was using Medical sample with Visual C++.<br>It takes 16 bit files in the format xxx.1, xxx.2, xxx.3 etc. All works to taste.<br>
<br>The Problem - How can I supply it 8 bit files? I have around 800 files and converting them to 16 bit will double the data size - too huge for my graphics card.<br>
<br>regards,<br><br>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>