You could use one of itk's voting filters:<br>itkLabelVotingImageFIlter<br>itkVotingBinaryHoleFillingImageFilter<br>itkVotingBinaryIterativeHoleFillingImageFilter<br><br><br><div class="gmail_quote">On Sun, Apr 24, 2011 at 9:28 PM, Gib Bogle <span dir="ltr"><<a href="mailto:g.bogle@auckland.ac.nz">g.bogle@auckland.ac.nz</a>></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;">I'm not sure if this should be here or on the VTK message list, so I'm posting it to both lists.<br>
<br>
I'm processing 3D TIFFs with ITK, but I want to use the island removal capability of VTK, to filter each 2D image in the 3D stack (as far as I can see VTK doesn't know about 3D TIFFs). I presume I need to open the 3D image in ITK, select a 2D slice, convert it to VTK 2D image format, apply the island removal filter, convert it back to ITK image format, and write it back into the 3D image. It would be very nice if someone has done something similar to this and could show me how to do it.<br>
<br>
Thanks<br>
Gib<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>