<?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: General connectivity</title>
	<link>http://blogs.mathworks.com/steve/2007/11/27/general-connectivity/</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 00:12:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2007/11/27/general-connectivity/#comment-20799</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 16 Jun 2008 13:28:24 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2007/11/27/general-connectivity/#comment-20799</guid>
		<description>Dave&#8212;I think you're pushing the idea of pixel connectivity way past where it was meant to go.  :-)  You might try using a Hough circle detection algorithm.  Some of these do a good job detecting partial circles.  Once you have the center and radius, you can fill in the perimeter pixels.</description>
		<content:encoded><![CDATA[<p>Dave&mdash;I think you&#8217;re pushing the idea of pixel connectivity way past where it was meant to go.  :-)  You might try using a Hough circle detection algorithm.  Some of these do a good job detecting partial circles.  Once you have the center and radius, you can fill in the perimeter pixels.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dave</title>
		<link>http://blogs.mathworks.com/steve/2007/11/27/general-connectivity/#comment-20795</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Thu, 12 Jun 2008 22:21:58 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2007/11/27/general-connectivity/#comment-20795</guid>
		<description>hey Steve,

thanks for your great blog. i had a question extending the general connectivity (perhaps we could call it specific connectivity?:)

can you think of a way to extend bwperim (or any function or set of functions) to connect open objects, such as the incomplete perimeters of circles? for example, let's say i have the following matrix, and i want to complete the circle... perhaps by recursively checking for 8-pixel connectivity. any ideas?

circperim = bwperim(fspecial('disk',8)&#62;0);
circperim(1:5,1:5) = zeros(5);
imshow(circperim);

0  0  0  0  0  1  1  1  1  1  1  1  0  0  0  0  0
0  0  0  0  0  0  0  0  0  0  0  0  1  1  0  0  0
0  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0
0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0
0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0
1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1
1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1
1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1
1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1
1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1
1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1
1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1
0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0
0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0
0  0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0
0  0  0  1  1  0  0  0  0  0  0  0  1  1  0  0  0
0  0  0  0  0  1  1  1  1  1  1  1  0  0  0  0  0

thanks!

dave</description>
		<content:encoded><![CDATA[<p>hey Steve,</p>
<p>thanks for your great blog. i had a question extending the general connectivity (perhaps we could call it specific connectivity?:)</p>
<p>can you think of a way to extend bwperim (or any function or set of functions) to connect open objects, such as the incomplete perimeters of circles? for example, let&#8217;s say i have the following matrix, and i want to complete the circle&#8230; perhaps by recursively checking for 8-pixel connectivity. any ideas?</p>
<p>circperim = bwperim(fspecial(&#8217;disk&#8217;,8)&gt;0);<br />
circperim(1:5,1:5) = zeros(5);<br />
imshow(circperim);</p>
<p>0  0  0  0  0  1  1  1  1  1  1  1  0  0  0  0  0<br />
0  0  0  0  0  0  0  0  0  0  0  0  1  1  0  0  0<br />
0  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0<br />
0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0<br />
0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0<br />
1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1<br />
1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1<br />
1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1<br />
1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1<br />
1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1<br />
1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1<br />
1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1<br />
0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0<br />
0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0<br />
0  0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0<br />
0  0  0  1  1  0  0  0  0  0  0  0  1  1  0  0  0<br />
0  0  0  0  0  1  1  1  1  1  1  1  0  0  0  0  0</p>
<p>thanks!</p>
<p>dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harun</title>
		<link>http://blogs.mathworks.com/steve/2007/11/27/general-connectivity/#comment-19789</link>
		<dc:creator>Harun</dc:creator>
		<pubDate>Mon, 04 Feb 2008 17:55:04 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2007/11/27/general-connectivity/#comment-19789</guid>
		<description>Tried it and works like a charm. But there's the additional hassle of removing the pads once bwperim does its work, hope this can be addressed in future versions. Thanks a lot Steve!</description>
		<content:encoded><![CDATA[<p>Tried it and works like a charm. But there&#8217;s the additional hassle of removing the pads once bwperim does its work, hope this can be addressed in future versions. Thanks a lot Steve!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2007/11/27/general-connectivity/#comment-18663</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 15 Jan 2008 12:12:40 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2007/11/27/general-connectivity/#comment-18663</guid>
		<description>Harun&#8212;There is an implicit assumption in bwperim that pixels "outside" the image are background pixels.  That's why A(1,4:6) are identified as perimeter pixels.  You could get your desired result by prepadding the boundary with ones using &lt;tt&gt;padarray&lt;/tt&gt;.</description>
		<content:encoded><![CDATA[<p>Harun&mdash;There is an implicit assumption in bwperim that pixels &#8220;outside&#8221; the image are background pixels.  That&#8217;s why A(1,4:6) are identified as perimeter pixels.  You could get your desired result by prepadding the boundary with ones using <tt>padarray</tt>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harun Koku</title>
		<link>http://blogs.mathworks.com/steve/2007/11/27/general-connectivity/#comment-18655</link>
		<dc:creator>Harun Koku</dc:creator>
		<pubDate>Tue, 15 Jan 2008 01:54:16 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2007/11/27/general-connectivity/#comment-18655</guid>
		<description>Hi Steve,

Thanks for the great blog, and hope you keep this up. I have a question about the bwperim - connectivity example here. When I try this simple code:

conn1 = 4
A = [0 0 1 1 1 1 1 0 0
     0 0 1 1 1 1 1 0 0
     0 0 0 0 0 0 0 0 0
     0 0 0 0 0 0 0 0 0]
 B = bwperim(A,conn1)

I get the resulting perim matrix B:
B =

     0 0 1 1 1 1 1 0 0
     0 0 1 1 1 1 1 0 0
     0 0 0 0 0 0 0 0 0
     0 0 0 0 0 0 0 0 0

Ideally A(1,4), A(1,5) and A(1,6) shouldn't be perimeter pixels. Is there some way to get the right perimeter? Thanks in advance!</description>
		<content:encoded><![CDATA[<p>Hi Steve,</p>
<p>Thanks for the great blog, and hope you keep this up. I have a question about the bwperim - connectivity example here. When I try this simple code:</p>
<p>conn1 = 4<br />
A = [0 0 1 1 1 1 1 0 0<br />
     0 0 1 1 1 1 1 0 0<br />
     0 0 0 0 0 0 0 0 0<br />
     0 0 0 0 0 0 0 0 0]<br />
 B = bwperim(A,conn1)</p>
<p>I get the resulting perim matrix B:<br />
B =</p>
<p>     0 0 1 1 1 1 1 0 0<br />
     0 0 1 1 1 1 1 0 0<br />
     0 0 0 0 0 0 0 0 0<br />
     0 0 0 0 0 0 0 0 0</p>
<p>Ideally A(1,4), A(1,5) and A(1,6) shouldn&#8217;t be perimeter pixels. Is there some way to get the right perimeter? Thanks in advance!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
