Hi Xiaopeng,<br><br>When performing visualization with VTK you must<br>place the camera in the correct position with <br>respect to the data.<br><br>See:<br><a href="http://www.itk.org/Wiki/Proposals:Orientation#C.7.6.2.1.1_Image_Position_And_Image_Orientation">http://www.itk.org/Wiki/Proposals:Orientation#C.7.6.2.1.1_Image_Position_And_Image_Orientation</a><br>
<br>and see the code in IGSTK:<br><a href="http://public.kitware.com/cgi-bin/viewcvs.cgi/Source/igstkView2D.cxx?root=IGSTK&amp;view=markup">http://public.kitware.com/cgi-bin/viewcvs.cgi/Source/igstkView2D.cxx?root=IGSTK&amp;view=markup</a><br>
<br><br>Also, a quick and dirty solution is to use<br>the itkFlipImageFilter, but that is NOT<br>the safe way of displaying medical data.<br><br>instead,<br>You should place the vtkCamera in the<br>correct location and with the correct Up<br>
orientation.<br><br><br><br>    Regards,<br><br><br>            Luis<br><br><br>--------------------------------------------------------------------------------<br><div class="gmail_quote">On Fri, Oct 15, 2010 at 9:04 PM, Xiaopeng Yang <span dir="ltr">&lt;<a href="mailto:yxp233@postech.ac.kr">yxp233@postech.ac.kr</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-US">

<div>

<p class="MsoNormal">Dear ITK Users,</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">How are you doing?</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">For visualizing DICOM CT images, I programmed like this:</p>

<p class="MsoNormal"> </p>

<p><span>1.<span style="font: 7pt &quot;Times New Roman&quot;;">      
</span></span>Use ITK reader to load a series of images</p>

<p><span>2.<span style="font: 7pt &quot;Times New Roman&quot;;">      
</span></span>Apply ITKToVTKImageFilter to pass the images from ITK
to VTK</p>

<p><span>3.<span style="font: 7pt &quot;Times New Roman&quot;;">      
</span></span>Visualize the images by VTK</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I got the images visualized successfully. However, compared
with the visualization result of using VTK reader directly, the images are inverse
vertically, and the same is the order of the slices.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Attached please find the image. Could anyone tell me how to
solve the problem?</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Thanks!</p>

<p class="MsoNormal">Xiaopeng</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"><img src="cid:image001.jpg@01CB6D19.9289DE70" height="299" width="313"></p>

</div>

</div>


<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<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br>