[Insight-users] How to fill big hole in a binary image

Sergio Vera sergio.vera at alma3d.com
Tue Apr 19 04:43:22 EDT 2011


One way to do it is based on label analysis.
(similar to bwlabeln in matlab) Take all the labels detected. Bigger one may
be background, then take all the ohters that have value 0 and turn them into
foreground value.

more info: http://www.insight-journal.org/browse/publication/176

HTH

On Tue, Apr 19, 2011 at 10:37 AM, Pei Dong <peidong1030 at gmail.com> wrote:

> Hello,
>
> I am a new user of ITK.
> I have a problem to fill a big hole in a binary image, and
> itkVoltingBinaryHoleFilingImageFilter seems does not work well in fill large
> hole.
>
> In Matlab there is a imfill(bw, ' holes') which give me the result that I
> want, and it does not need any parameters of size of neighborhood.
>
> Does ITK have the filter like the function in Matlab?
> The link below shows result given by imfill() in Matlab.
> http://www.creatis.insa-lyon.fr/~zuluaga/imgs_pei/
>
>
> Thanks in advance.
> Pei
>
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>


-- 
Sergio Vera

 Alma IT Systems
 C/ Vilana, 4B, 4º 1ª
 08022 Barcelona
 T. (+34) 932 380 592
 www.alma3d.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110419/0cd714ee/attachment.htm>


More information about the Insight-users mailing list