Hi all,<br><br> I have a set of 2D .png slices that I read into VTK using vtkPNGReader.<br>I have no clue where the data goes after that.<br><br> While I would like the 3D volume display, I would also like to have a display of the individual 2D slices, without having to use more memory. <br><br>The following is the code I use to read the .png slices.<br> vol2 = vtkPNGReader::New();<br> vol2->SetFileDimensionality(2);<br> vol2->SetDataByteOrderToLittleEndian();<br> vol2->SetFilePrefix ("2938/2938.png");<br> vol2->SetDataExtent(0, 255, 0, 255, 0 , 31);<br> vol2->SetDataSpacing (1.0, 1.0, 4.0);<br> vol2->UpdateWholeExtent();<br><br> I've always stored data in a n*m*k matrix and so its easy to traverse along any given axis.<br><br>In VTK, I'm not sure how to do this.<br><br>Does anyone have any suggestions ? Where and how is the data stored in vtk
?<br><br>thanks,<br>Emma<br><br><br><br><b><i>Obada Mahdi <omahdi@gmx.de></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hi Emma!<br><br>On 10/22/06, Emma Ryan <eryanvtk@yahoo.com> wrote:<br>> I searched the entire C: for QVTK.lib, but never found one. I do however<br>> see the .h files of QVTKWidget in the GUISupport/QT directory of VTK.<br>><br>> How can I get the QVTK.lib file ?<br><br>Did you enable the CMake option "VTK_USE_QVTK" for your VTK build?<br>Qt stuff will not be built unless it is set to "ON". You probably<br>have to switch to "advanced mode" (press 't' in the ccmake curses<br>dialog) and enable "VTK_USE_GUISUPPORT" before the QVTK option shows<br>up.<br><br><br>HTH,<br><br>Obada<br></eryanvtk@yahoo.com></blockquote><br><p> 
        
                <hr size=1>Get your own <a href=" http://us.rd.yahoo.com/evt=43290/*http://smallbusiness.yahoo.com/domains"
>web address for just $1.99/1st yr</a>. We'll help. <a href="http://us.rd.yahoo.com/evt=41244/*http://smallbusiness.yahoo.com/"
>Yahoo! Small Business</a>.