Thanks Jerome.<br><br>If we look at the sample code (Medical1.cxx):<br><br><pre class="cpp cpp" style="font-family: monospace;">  <span style="color: rgb(102, 102, 102);">// The following reader is used to read a series of 2D slices (images)</span><br>
  <span style="color: rgb(102, 102, 102);">// that compose the volume. The slice dimensions are set, and the</span><br>  <span style="color: rgb(102, 102, 102);">// pixel spacing. The data Endianness must also be specified. The reader</span><br>
  <span style="color: rgb(102, 102, 102);">// usese the FilePrefix in combination with the slice number to construct</span><br>  <span style="color: rgb(102, 102, 102);">// filenames using the format FilePrefix.%d. (In this case the FilePrefix</span><br>
  <span style="color: rgb(102, 102, 102);">// is the root name of the file: quarter.)</span><br>  vtkVolume16Reader <span style="color: rgb(0, 0, 64);">*</span>v16 <span style="color: rgb(0, 0, 128);">=</span> vtkVolume16Reader<span style="color: rgb(0, 128, 128);">::</span><span style="color: rgb(0, 0, 221);">New</span><span style="color: rgb(0, 128, 0);">(</span><span style="color: rgb(0, 128, 0);">)</span>;<br>
    v16<span style="color: rgb(0, 0, 64);">-</span><span style="color: rgb(0, 0, 128);">&gt;</span>SetDataDimensions <span style="color: rgb(0, 128, 0);">(</span><span style="color: rgb(0, 0, 221);">64</span>,<span style="color: rgb(0, 0, 221);">64</span><span style="color: rgb(0, 128, 0);">)</span>;<br>
    v16<span style="color: rgb(0, 0, 64);">-</span><span style="color: rgb(0, 0, 128);">&gt;</span>SetImageRange <span style="color: rgb(0, 128, 0);">(</span><span style="color: rgb(0, 0, 221);">1</span>,<span style="color: rgb(0, 0, 221);">93</span><span style="color: rgb(0, 128, 0);">)</span>;<br>
    v16<span style="color: rgb(0, 0, 64);">-</span><span style="color: rgb(0, 0, 128);">&gt;</span>SetDataByteOrderToLittleEndian<span style="color: rgb(0, 128, 0);">(</span><span style="color: rgb(0, 128, 0);">)</span>;<br>
    v16<span style="color: rgb(0, 0, 64);">-</span><span style="color: rgb(0, 0, 128);">&gt;</span>SetFilePrefix <span style="color: rgb(0, 128, 0);">(</span>argv<span style="color: rgb(0, 128, 0);">[</span><span style="color: rgb(0, 0, 221);">1</span><span style="color: rgb(0, 128, 0);">]</span><span style="color: rgb(0, 128, 0);">)</span>;<br>
    v16<span style="color: rgb(0, 0, 64);">-</span><span style="color: rgb(0, 0, 128);">&gt;</span>SetDataSpacing <span style="color: rgb(0, 128, 0);">(</span><span style="color: rgb(128, 0, 128);">3.2</span>, <span style="color: rgb(128, 0, 128);">3.2</span>, <span style="color: rgb(128, 0, 128);">1.5</span><span style="color: rgb(0, 128, 0);">)</span>;<br>
</pre><br>It uses vtkVolume16Reader to read the 16 bit files. I would like to know the 8 bit counterpart of this class. If not, any other class that can read multiple 8 bit files in a similar manner.<br><br>regards,<br>D Rathore<br>
<br><div class="gmail_quote">On Mon, Apr 20, 2009 at 12:55 AM, Jérôme <span dir="ltr">&lt;<a href="mailto:jerome.velut@gmail.com">jerome.velut@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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 -&gt; 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">&lt;<a href="mailto:divyarathore@gmail.com" target="_blank">divyarathore@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">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></div></div>_______________________________________________<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>
</blockquote></div><br><br clear="all"><br>-- <br>&quot;The difference between school and life? In school, you&#39;re taught a lesson and then given a test. In life, you&#39;re given a test that teaches you a lesson.&quot;<br>