[Insight-users] Re: Image Processeing question/ Filling holes
Vikram Chalana
VChalana@dxu.com
Fri, 7 Mar 2003 09:14:01 -0800
Zein,
You have a couple of options:
1. Like Luis suggested, pick a circular structuring element with diameter
one pixel larger than largest hole you want to fill and apply morphological
closing (dilation followed by erosion). Closing will have other side effects
as well - such as, it might not leave your outside boundaries intact.
2. Invert the segmented image and run connected component analysis.
Basically, each connected region here is either a hole or the background
region. The largest region is typically the background region and you do
not have to process this. On the hole regions, you can choose to eliminate
all the connected regions or just to select regions smaller than a given
size and essentially fill them in your segmented image.
Hope this helps,
Vikram
_________________________________________________
Vikram Chalana, Ph.D. Diagnostic Ultrasound Corp.
16932 Wood-Red Rd 425.867.1348 x 5788
Bldg A, Suite 102 Fax: 425.883.2896
Woodinville, WA 98072 vchalana@dxu.com