[Insight-users] Fill holes in mask
Luis Ibanez
luis.ibanez at kitware.com
Thu, 22 Jan 2004 17:37:06 -0500
Hi Radhika,
If the holes are smaller than the thinnest section
of the ON region, you can also consider just doing
a closening mathematical morphology operation with
a structuring element whose diameter is slightly
larger than the largest hole.
This is equivalent to run a pipeline with Dilate
followed by Erode.
http://www.itk.org/Insight/Doxygen/html/classitk_1_1BinaryDilateImageFilter.html
http://www.itk.org/Insight/Doxygen/html/classitk_1_1BinaryErodeImageFilter.html
Regards,
Luis
-----------------------------
Radhika Sivaramakrishna wrote:
> Hi Luis,
> The holes are not very big in relation to the size of my ON region. Your
> option B sounds really good and I will implement it.
>
....
>
> Thanks
> Radhika
>
>
>