Hi Luis,<br><br><br>1) I will definitely have a look at this experimental itkVotingBinaryHoleFillFloodingImageFilter you suggested.<br><br>2) I dont really need to extract the surface. I was more thinking about trying to extract the outer surface (or the outer contour in extracted 2D slice) and fill inside afterwards.<br>
<br>Besides, I had some success today to fill holes by using the itkConnectedComponentImageFilter, and it doesnt take too much time.<br>Though it is not well adapted to fill holes which have contacts with the surface, hence the necessity to use morphological filters...<br>
<br>Anyway, thank you very much for your fast answer and suggestions.<br><br><br>Best regards.<br><br>Fred<br><br><br><br><div class="gmail_quote">Le 20 janvier 2010 20:26, Luis Ibanez <span dir="ltr"><<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>></span> a écrit :<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Frederic,<br>
<br>
1) In order to fill-up holes you may want to use<br>
the filter:<br>
<br>
itkVotingBinaryIterativeHoleFillingImageFilter<br>
<br>
or the faster (but experimental) version in the<br>
NAMIC Sandbox:<br>
<br>
<br>
itkVotingBinaryHoleFillFloodingImageFilter.h<br>
<br>
<a href="http://svn.na-mic.org/NAMICSandBox/trunk/VotingHoleFillFloodingImageFilter/Source/" target="_blank">http://svn.na-mic.org/NAMICSandBox/trunk/VotingHoleFillFloodingImageFilter/Source/</a><br>
<br>
<br>
<br>
2) Were you considering surface extraction<br>
as an alternative method for filling-up the<br>
holes ?<br>
<br>
or do you need to do surface extraction<br>
anyways ?<br>
<br>
<br>
<br>
<br>
Regards,<br>
<br>
<br>
Luis<br>
<br>
<br>
---------------------------------------------<br>
2010/1/19 frédéric salvador <<a href="mailto:frederic.salvador@gmail.com">frederic.salvador@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Dear all,<br>
><br>
><br>
> So as to segment lungs in CT volume, I implemented the following steps:<br>
> - low-pass smoothing,<br>
> - binary thresolding,<br>
> - connected component analysis,<br>
> - (eventually some objects relabelling).<br>
><br>
> So now I get a good binary mask of the lung volume.<br>
><br>
> Though, there are numerous veins and arteries in the lungs volume (appearing<br>
> in black in my binary mask) that I would like to fill.<br>
><br>
> I tried a rolling-ball operator consisting of a morphological closing<br>
> followed by a hole filling filter. But as my image is 512*512*605 it takes<br>
> too long computation time for my application. Besides, the kernel should be<br>
> pretty big so as to fill big holes.<br>
><br>
> So here comes my question:<br>
> Is it possible:<br>
> - to extract the outer surface, by using marching cubes for instance, and<br>
> fill inside the surface?<br>
> OR<br>
> - to extract and operate on 2D slice to extract the outer contours, by<br>
> using some itk or vtk contour filter, and of course fill inside the outer<br>
> contours?<br>
><br>
><br>
> I have been struggling a few hours on this, so your help would be highly<br>
> appreciated.<br>
><br>
> Thanks a lot in advance for your answer.<br>
><br>
> Fred<br>
><br>
</div></div><div><div></div><div class="h5">> _____________________________________<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>
><br>
</div></div></blockquote></div><br>