Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: imfill(image,'holes',sizeHoles)
Date: Sat, 30 Aug 2008 11:58:02 +0000 (UTC)
Organization: Queen's University
Lines: 9
Message-ID: <g9bcka$566$1@fred.mathworks.com>
References: <g68r9e$io2$1@fred.mathworks.com> <g69si8$poi$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1220097482 5318 172.30.248.37 (30 Aug 2008 11:58:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 30 Aug 2008 11:58:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 943450
Xref: news.mathworks.com comp.soft-sys.matlab:487961



Hi,

I did this using,

new = ~bwareaopen(~original, 100);

The results are not quite the same - in contrast to imfill, this method will also 
fill in holes occurring at the image boundary, which may or may not be 
desirable.