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

Lassi Paavolainen lassi.paavolainen at jyu.fi
Tue Apr 19 04:47:50 EDT 2011


Hi Pei,

Sounds like ITK's GrayscaleFillholeImageFilter is what you want.

Cheers,
Lassi

On Tue, 19 Apr 2011, Pei Dong 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
>


More information about the Insight-users mailing list