HI Pietro,<div><br></div><div>It depends where in your application you are extracting the region.</div><div><br></div><div>If you are doing it in the code that deals with visualization and the</div><div>resulting region is only going to be used for display, then the VTK</div>
<div>filter will do just fine.</div><div><br></div><div>On the other hand, if you are doing this in the middle of a pipeline</div><div>and the extracted region is going to be used for subsequent </div><div>processing, you probably should prefer the ITK Region of Interest</div>
<div>filter:</div><div><br></div><div><a href="http://www.itk.org/Doxygen/html/classitk_1_1RegionOfInterestImageFilter.html">http://www.itk.org/Doxygen/html/classitk_1_1RegionOfInterestImageFilter.html</a> </div><div><br>
</div><div>since it preserves the orientation (direction cosines) of the image,</div><div>and properly sets the origin in physical coordinates of the output</div><div>image region. This are very important attributes if you are using</div>
<div>the resulting image in registration, or if you plan to correlate it</div><div>spatially to the input image.</div><div><br></div><div> Hope this helps,</div><div><br></div><div> Luis</div><div><br></div><div>
<br></div><div>------------------------------------<br><div class="gmail_quote">On Wed, May 23, 2012 at 12:08 PM, Pietro Nardelli <span dir="ltr"><<a href="mailto:pie.nardelli@gmail.com" target="_blank">pie.nardelli@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sorry guys,<br>
<br>
I have another question: I'm using the class Region of interest to<br>
crop a volume of a DICOM dataset, but I found out that in VTK there is<br>
the class Extract ROI which seems very similar. Does anyone know what<br>
the difference between the 2 classes? Which is the best one?<br>
<br>
Thank you,<br>
<br>
Pietro<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.php" target="_blank">http://www.kitware.com/products/protraining.php</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>
</blockquote></div><br></div>