<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: A structuring element decomposition &#8220;gotcha&#8221;</title>
	<atom:link href="http://blogs.mathworks.com/steve/2008/11/26/a-structuring-element-decomposition-gotcha/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/steve/2008/11/26/a-structuring-element-decomposition-gotcha/</link>
	<description>Steve Eddins manages the Image &#38; Geospatial development team at The MathWorks and coauthored Digital Image Processing Using MATLAB. He writes here about image processing concepts, algorithm implementations, and MATLAB.</description>
	<lastBuildDate>Sat, 11 Feb 2012 18:27:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2008/11/26/a-structuring-element-decomposition-gotcha/#comment-23579</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 07 Oct 2010 13:00:48 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/11/26/a-structuring-element-decomposition-gotcha/#comment-23579</guid>
		<description>Cris&#8212;I see. My fault, I suppose. I&#039;m the one who designed and implemented strel.</description>
		<content:encoded><![CDATA[<p>Cris&mdash;I see. My fault, I suppose. I&#8217;m the one who designed and implemented strel.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cris Luengo</title>
		<link>http://blogs.mathworks.com/steve/2008/11/26/a-structuring-element-decomposition-gotcha/#comment-23578</link>
		<dc:creator>Cris Luengo</dc:creator>
		<pubDate>Thu, 07 Oct 2010 12:52:32 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/11/26/a-structuring-element-decomposition-gotcha/#comment-23578</guid>
		<description>Steve, this is what I&#039;m referring to:

&lt;pre&gt;
imshow( (fspecial(&#039;disk&#039;,100)&gt;0) - getnhood(strel(&#039;disk&#039;,100,0)) )
&lt;/pre&gt;

I thought it was an interesting find... good to be aware of.</description>
		<content:encoded><![CDATA[<p>Steve, this is what I&#8217;m referring to:</p>
<pre>
imshow( (fspecial('disk',100)&gt;0) - getnhood(strel('disk',100,0)) )
</pre>
<p>I thought it was an interesting find&#8230; good to be aware of.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2008/11/26/a-structuring-element-decomposition-gotcha/#comment-23573</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 06 Oct 2010 12:12:39 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/11/26/a-structuring-element-decomposition-gotcha/#comment-23573</guid>
		<description>Cris&#8212;The variation in size for strel(&#039;disk&#039;,5) comes from the structuring element decomposition.  There isn&#039;t an exact decomposition for a disk-shaped structuring element, so this call is producing an approximation.  Use strel(&#039;disk&#039;,5,0) to avoid the approximation.</description>
		<content:encoded><![CDATA[<p>Cris&mdash;The variation in size for strel(&#8216;disk&#8217;,5) comes from the structuring element decomposition.  There isn&#8217;t an exact decomposition for a disk-shaped structuring element, so this call is producing an approximation.  Use strel(&#8216;disk&#8217;,5,0) to avoid the approximation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cris Luengo</title>
		<link>http://blogs.mathworks.com/steve/2008/11/26/a-structuring-element-decomposition-gotcha/#comment-23571</link>
		<dc:creator>Cris Luengo</dc:creator>
		<pubDate>Wed, 06 Oct 2010 09:11:05 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/11/26/a-structuring-element-decomposition-gotcha/#comment-23571</guid>
		<description>@ Ken&#039;s post:

1- Why are these the same size? I would have hoped for a little more consistency across functions in one toolbox! :)
   disk = strel(&#039;disk&#039;,5);
   disk = fspecial(&#039;disk&#039;,4);

2- The various operations compared in this post do not do the same thing. Replace &#039;a&#039; with &#039;a=imread(&#039;moon.tif&#039;)&#039; or something similar, and you&#039;ll see. &#039;imdilate&#039; is not limited to binary images.

3- The timing difference drops significantly with this larger input image (moon.tif). And &#039;imdilate&#039; turns out to be faster if you make the disk with a radius of 15 instead of 5 (this is where the decomposition of the structuring element becomes significant). Don&#039;t know where I&#039;m heading with this point, I guess most of the differences is in the overhead rather than the computation.</description>
		<content:encoded><![CDATA[<p>@ Ken&#8217;s post:</p>
<p>1- Why are these the same size? I would have hoped for a little more consistency across functions in one toolbox! :)<br />
   disk = strel(&#8216;disk&#8217;,5);<br />
   disk = fspecial(&#8216;disk&#8217;,4);</p>
<p>2- The various operations compared in this post do not do the same thing. Replace &#8216;a&#8217; with &#8216;a=imread(&#8216;moon.tif&#8217;)&#8217; or something similar, and you&#8217;ll see. &#8216;imdilate&#8217; is not limited to binary images.</p>
<p>3- The timing difference drops significantly with this larger input image (moon.tif). And &#8216;imdilate&#8217; turns out to be faster if you make the disk with a radius of 15 instead of 5 (this is where the decomposition of the structuring element becomes significant). Don&#8217;t know where I&#8217;m heading with this point, I guess most of the differences is in the overhead rather than the computation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2008/11/26/a-structuring-element-decomposition-gotcha/#comment-21814</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 01 Jun 2009 13:43:40 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/11/26/a-structuring-element-decomposition-gotcha/#comment-21814</guid>
		<description>Alex&#8212;The appropriate structuring element shape depends on your application and data set, just like choosing between a lowpass filter and a highpass filter.  You might want to get a good textbook on image processing.</description>
		<content:encoded><![CDATA[<p>Alex&mdash;The appropriate structuring element shape depends on your application and data set, just like choosing between a lowpass filter and a highpass filter.  You might want to get a good textbook on image processing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://blogs.mathworks.com/steve/2008/11/26/a-structuring-element-decomposition-gotcha/#comment-21812</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sun, 31 May 2009 17:37:22 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/11/26/a-structuring-element-decomposition-gotcha/#comment-21812</guid>
		<description>Hi.. I cannot understand what is written in matlab help. Could you give me a brief description on how to select the appropriate structuring element parameter? wheter is disc or rectangle or wad.</description>
		<content:encoded><![CDATA[<p>Hi.. I cannot understand what is written in matlab help. Could you give me a brief description on how to select the appropriate structuring element parameter? wheter is disc or rectangle or wad.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2008/11/26/a-structuring-element-decomposition-gotcha/#comment-21331</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 19 Dec 2008 21:08:29 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/11/26/a-structuring-element-decomposition-gotcha/#comment-21331</guid>
		<description>Ken&#8212;I get similar results.  Clearly, we have a lot of room to improve our dilation implementation!  We&#039;re looking into it.</description>
		<content:encoded><![CDATA[<p>Ken&mdash;I get similar results.  Clearly, we have a lot of room to improve our dilation implementation!  We&#8217;re looking into it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2008/11/26/a-structuring-element-decomposition-gotcha/#comment-21323</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Sat, 13 Dec 2008 16:59:08 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/11/26/a-structuring-element-decomposition-gotcha/#comment-21323</guid>
		<description>Oliver&#8212;I didn&#039;t say &lt;tt&gt;bwlabel&lt;/tt&gt; allows arbitrary strels, just arbitrary connectivities.  I would be interested to hear more about your application, if you care to share it.  For example, when would it make sense to say that the two 1-valued pixels below are connected?

&lt;pre&gt;
1 0 0 0 0 0 0 0 1
&lt;/pre&gt;

Anyway, some of the material in my &lt;a href=&quot;http://blogs.mathworks.com/steve/category/connected-components/&quot; rel=&quot;nofollow&quot;&gt;series on connected component labeling algorithms&lt;/a&gt; might be useful to you.</description>
		<content:encoded><![CDATA[<p>Oliver&mdash;I didn&#8217;t say <tt>bwlabel</tt> allows arbitrary strels, just arbitrary connectivities.  I would be interested to hear more about your application, if you care to share it.  For example, when would it make sense to say that the two 1-valued pixels below are connected?</p>
<pre>
1 0 0 0 0 0 0 0 1
</pre>
<p>Anyway, some of the material in my <a href="http://blogs.mathworks.com/steve/category/connected-components/" rel="nofollow">series on connected component labeling algorithms</a> might be useful to you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver Woodford</title>
		<link>http://blogs.mathworks.com/steve/2008/11/26/a-structuring-element-decomposition-gotcha/#comment-21322</link>
		<dc:creator>Oliver Woodford</dc:creator>
		<pubDate>Sat, 13 Dec 2008 16:35:47 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/11/26/a-structuring-element-decomposition-gotcha/#comment-21322</guid>
		<description>Thanks, Steve. However, the CONN matrix doesn&#039;t allow arbitrary strel neighbourhoods. In particular, the neighbourhoods are limited to 3x3 (for 2d) and must be symmetric. For the problem I have (with a 9x9 neighbourhood), BWLABELN can&#039;t be used.</description>
		<content:encoded><![CDATA[<p>Thanks, Steve. However, the CONN matrix doesn&#8217;t allow arbitrary strel neighbourhoods. In particular, the neighbourhoods are limited to 3&#215;3 (for 2d) and must be symmetric. For the problem I have (with a 9&#215;9 neighbourhood), BWLABELN can&#8217;t be used.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2008/11/26/a-structuring-element-decomposition-gotcha/#comment-21321</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Sat, 13 Dec 2008 16:02:08 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/11/26/a-structuring-element-decomposition-gotcha/#comment-21321</guid>
		<description>Oliver&#8212;&lt;tt&gt;bwlabeln&lt;/tt&gt; supports labeling operations with an arbitrary connectivity definition.  See the doc regarding the &lt;tt&gt;CONN&lt;/tt&gt; input argument.  You can use &lt;tt&gt;bwlabeln&lt;/tt&gt; on two-dimensional inputs.</description>
		<content:encoded><![CDATA[<p>Oliver&mdash;<tt>bwlabeln</tt> supports labeling operations with an arbitrary connectivity definition.  See the doc regarding the <tt>CONN</tt> input argument.  You can use <tt>bwlabeln</tt> on two-dimensional inputs.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

