<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Filling small holes</title>
	<link>http://blogs.mathworks.com/steve/2008/08/05/filling-small-holes/</link>
	<description>Steve Eddins manages the Image &#38; Geospatial development team at &#60;a href="http://www.mathworks.com/"&#62;The MathWorks&#60;/a&#62; and coauthored &#60;a href="http://www.mathworks.com/support/books/book5291.html?category=-1&#38;language=-1"&#62;Digital Image Processing Using MATLAB&#60;/a&#62;. He writes here about image processing concepts, algorithm implementations, and MATLAB.&#60;br&#62;&#60;br&#62;&#60;img&#62;</description>
	<pubDate>Mon, 23 Nov 2009 01:11:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2008/08/05/filling-small-holes/#comment-20976</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 13 Aug 2008 16:29:28 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2008/08/05/filling-small-holes/#comment-20976</guid>
		<description>Sven&#8212;Thanks for the additional tips.</description>
		<content:encoded><![CDATA[<p>Sven&mdash;Thanks for the additional tips.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sven</title>
		<link>http://blogs.mathworks.com/steve/2008/08/05/filling-small-holes/#comment-20950</link>
		<dc:creator>Sven</dc:creator>
		<pubDate>Wed, 06 Aug 2008 20:16:11 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2008/08/05/filling-small-holes/#comment-20950</guid>
		<description>Hi Steve and all,

Just a little extra in case you want to fill *midsized* holes. The following fits in at Step 3 above, and will fill holes between 80 and 300 pixels in area.

L_candidate_holes = bwlabel(holes);
stats = regionprops(L_candidate_holes, 'Area');
idx = find([stats.Area]&#62;80 &#38; [stats.Area]&#60;300);
midsized_holes = ismember(L_candidate_holes,idx);

Just thought I'd share since I've been using this quite a bit recently. Of course, you could add more criteria to the regionprops call, and then select the holes based on more criteria too.

Cheers,
Sven.</description>
		<content:encoded><![CDATA[<p>Hi Steve and all,</p>
<p>Just a little extra in case you want to fill *midsized* holes. The following fits in at Step 3 above, and will fill holes between 80 and 300 pixels in area.</p>
<p>L_candidate_holes = bwlabel(holes);<br />
stats = regionprops(L_candidate_holes, &#8216;Area&#8217;);<br />
idx = find([stats.Area]&gt;80 &amp; [stats.Area]&lt;300);<br />
midsized_holes = ismember(L_candidate_holes,idx);</p>
<p>Just thought I&#8217;d share since I&#8217;ve been using this quite a bit recently. Of course, you could add more criteria to the regionprops call, and then select the holes based on more criteria too.</p>
<p>Cheers,<br />
Sven.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
