Since your files are 1024x512 and you have about 800, you should set an extent of (0,1023,0,511,0,799). But maybe I am wrong, because I am not used to stack images loading. You possibly have to set the extent of one file (i.e. SetDataExtent(0,1023,0,511,0,0)), the multiple files loader may be able to set the z-extent to the number of concerned files.<br>
<br>SetDataExtent( int xMin, int xMax, int yMin, int yMax, int zMin, int zMax );<br><br>Cheers,<br><br>Jerome<br><br><div class="gmail_quote">2009/4/23 Divya Rathore <span dir="ltr">&lt;<a href="mailto:divyarathore@gmail.com">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;">Thanks Jerome!<br><br>Is:<br><br>virtual void <a href="http://www.vtk.org/doc/release/4.2/html/classvtkImageReader2.html#z2403_0" target="_blank">SetDataExtent</a> (int, int, int, int, int, int)<br>
<br>the one to be used to set dimentions? What is the exact usage? which int is what? :)<br>
All that the docs mention is &quot;Get/Set the extent of the data on disk.&quot;<div><div></div><div class="h5"><br><br><br><br><div class="gmail_quote">On Thu, Apr 23, 2009 at 11:33 AM, Jérôme <span dir="ltr">&lt;<a href="mailto:jerome.velut@gmail.com" target="_blank">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>Sorry for my last answer, my understanding of your problem was wrong. If I am right, you should use the vtkImageReader (or vtkImageReader2) that allow you to load a stack of raw images as a volume. The member functions SetDataScalarTypeToChar( ) and SetFileDimensionality( 2 ) should do the trick for your 8bit stack. Set other information (file prefix, size, etc.) and you will have as output an 8bit volume with dimension on z equal to the number of files and x,y dimensions to the image size you set.<br>


<br>Yes, keep hope! What you wish is possible with VTK!<br><br>Best regards,<br>Jerome<br><br><div class="gmail_quote">2009/4/23 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>Hi All,<br><br>Kind of my last attempt looking for a solution for this..<br>

<br>How do I do volume rendering (one may call it skin extraction as in Medical1 sample) for 8 Bit dataset in VTK?<br>
Image format could be multiple Tiff files or multiple raw 8-bit files.<br>
<br>Medical1 sample takes 16bit images. But I have around 800 files with 1024*512 resolution so 16 bit data for that is a bit too much for Medical1 sample to handle. Hence the need to render 8 Bit data set.<br><br>I guess this would be my last attempt to seek suggestions regarding VTK before I try other options. But am still hopeful..<br>



<br>regards,<br>D Rathore<br><br><br><div class="gmail_quote">On Sun, Apr 19, 2009 at 7:24 PM, Divya Rathore <span dir="ltr">&lt;<a href="mailto:divyarathore@gmail.com" target="_blank">divyarathore@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 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>
</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>




<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>


</div></div></blockquote></div><br>