Hi <div>I don't know the internals of thje BinaryKeeepNObjectsImageFilter byt maybe it's simpler (and faster) to just remove the biggest label, and not the one with more voxels on the border. Doing it on the whole 3D image instead of slice by slice seems to be faster and simpler. Have yoy tried already something similar?<br>
<br><div class="gmail_quote">
On Thu, Apr 7, 2011 at 6:28 PM, paniwani <span dir="ltr"><<a href="mailto:paniwani@gmail.com" target="_blank">paniwani@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What is the best way to remove the background air after thresholding < -600<br>
on a CT dataset? I currently use the BinaryShapeKeepNObjectsImageFilter to<br>
detect the largest component with "SizeOnBorder" and then remove this<br>
background from my image. However, this step is one of the slowest in my<br>
algorithm when performed over ~400 slices. Is there a faster and/or easier<br>
way?<br>
<br>
<a href="http://itk-insight-users.2283740.n2.nabble.com/file/n6250670/img1.jpg" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/file/n6250670/img1.jpg</a><br>
<a href="http://itk-insight-users.2283740.n2.nabble.com/file/n6250670/img2.jpg" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/file/n6250670/img2.jpg</a><br>
<a href="http://itk-insight-users.2283740.n2.nabble.com/file/n6250670/img3.jpg" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/file/n6250670/img3.jpg</a><br>
<br>
Thanks,<br>
Neil<br>
<br>
--<br>
View this message in context: <a href="http://itk-insight-users.2283740.n2.nabble.com/Subtract-background-air-CT-tp6250670p6250670.html" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/Subtract-background-air-CT-tp6250670p6250670.html</a><br>
Sent from the ITK Insight Users mailing list archive at Nabble.com.<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>
</blockquote></div><br><br clear="all"><br>-- <br>Sergio Vera<br><br> Alma IT Systems<br> C/ Vilana, 4B, 4º 1ª<br> 08022 Barcelona<br> T. (+34) 932 380 592<br> <a href="http://www.alma3d.com" target="_blank">www.alma3d.com</a><br>
</div>