<?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: Relabeling a label matrix</title>
	<atom:link href="http://blogs.mathworks.com/steve/2008/04/14/relabeling-a-label-matrix/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/steve/2008/04/14/relabeling-a-label-matrix/</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: Simon  Silk</title>
		<link>http://blogs.mathworks.com/steve/2008/04/14/relabeling-a-label-matrix/#comment-24011</link>
		<dc:creator>Simon  Silk</dc:creator>
		<pubDate>Sun, 13 Mar 2011 04:17:49 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/04/14/relabeling-a-label-matrix/#comment-24011</guid>
		<description>That worked perfectly. Your function imoverlay from the File Exchange is handy for visualizing the results too. Thanks.</description>
		<content:encoded><![CDATA[<p>That worked perfectly. Your function imoverlay from the File Exchange is handy for visualizing the results too. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2008/04/14/relabeling-a-label-matrix/#comment-24006</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 11 Mar 2011 21:05:57 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/04/14/relabeling-a-label-matrix/#comment-24006</guid>
		<description>Simon&#8212;Try something like this:

&lt;pre class=&quot;code&quot;&gt;
region_borders = imdilate(L,ones(3,3)) &gt; imerode(L,ones(3,3));
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Simon&mdash;Try something like this:</p>
<pre class="code">
region_borders = imdilate(L,ones(3,3)) > imerode(L,ones(3,3));
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon  Silk</title>
		<link>http://blogs.mathworks.com/steve/2008/04/14/relabeling-a-label-matrix/#comment-24002</link>
		<dc:creator>Simon  Silk</dc:creator>
		<pubDate>Thu, 10 Mar 2011 20:34:28 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/04/14/relabeling-a-label-matrix/#comment-24002</guid>
		<description>Hi Steve,

I was wondering if there&#039;s an easy way to convert a label matrix into a matrix where you have lines anywhere two labeled regions meet and zeros elsewhere so that you could basically superimpose the borders of regions on the original image the label were generated from as another visualization alternative to the popular label2rgb function. 

The reason I ask is that I&#039;m currently working on with some superpixel code, so I have many labeled regions (500 to 5,000). I&#039;ve been using rgblabel to convert the superpixel labels to colored regions, turning hold on, then displaying them over the original image with alphadata turned down to make them semi-transparent. However, with so many regions, this can be hard to analyze visually and I think simple borders of the regions would work better. Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Steve,</p>
<p>I was wondering if there&#8217;s an easy way to convert a label matrix into a matrix where you have lines anywhere two labeled regions meet and zeros elsewhere so that you could basically superimpose the borders of regions on the original image the label were generated from as another visualization alternative to the popular label2rgb function. </p>
<p>The reason I ask is that I&#8217;m currently working on with some superpixel code, so I have many labeled regions (500 to 5,000). I&#8217;ve been using rgblabel to convert the superpixel labels to colored regions, turning hold on, then displaying them over the original image with alphadata turned down to make them semi-transparent. However, with so many regions, this can be hard to analyze visually and I think simple borders of the regions would work better. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fadhle</title>
		<link>http://blogs.mathworks.com/steve/2008/04/14/relabeling-a-label-matrix/#comment-23352</link>
		<dc:creator>fadhle</dc:creator>
		<pubDate>Fri, 13 Aug 2010 07:35:50 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/04/14/relabeling-a-label-matrix/#comment-23352</guid>
		<description>i have one question here,how can i label the occluded objects,because the output is always 1 even if there are 4 or 5 objects</description>
		<content:encoded><![CDATA[<p>i have one question here,how can i label the occluded objects,because the output is always 1 even if there are 4 or 5 objects</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2008/04/14/relabeling-a-label-matrix/#comment-22455</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 09 Dec 2009 14:02:26 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/04/14/relabeling-a-label-matrix/#comment-22455</guid>
		<description>kk&#8212;Why not find the direction of the two objects and compute the difference?  Also, what is the direction of a circle?</description>
		<content:encoded><![CDATA[<p>kk&mdash;Why not find the direction of the two objects and compute the difference?  Also, what is the direction of a circle?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kk</title>
		<link>http://blogs.mathworks.com/steve/2008/04/14/relabeling-a-label-matrix/#comment-22454</link>
		<dc:creator>kk</dc:creator>
		<pubDate>Wed, 09 Dec 2009 09:25:10 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/04/14/relabeling-a-label-matrix/#comment-22454</guid>
		<description>i have a small doubt, how to find direction of an object with respect to other object present in same image as for example if an image has a rectangle with a square and circle enclosed in it, the circle denotes the front part of rectangle and i have to find its direction with respect to other object present in same image.</description>
		<content:encoded><![CDATA[<p>i have a small doubt, how to find direction of an object with respect to other object present in same image as for example if an image has a rectangle with a square and circle enclosed in it, the circle denotes the front part of rectangle and i have to find its direction with respect to other object present in same image.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: priya</title>
		<link>http://blogs.mathworks.com/steve/2008/04/14/relabeling-a-label-matrix/#comment-22432</link>
		<dc:creator>priya</dc:creator>
		<pubDate>Mon, 07 Dec 2009 18:07:06 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/04/14/relabeling-a-label-matrix/#comment-22432</guid>
		<description>this code is really helpful</description>
		<content:encoded><![CDATA[<p>this code is really helpful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2008/04/14/relabeling-a-label-matrix/#comment-22306</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 09 Nov 2009 18:22:35 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/04/14/relabeling-a-label-matrix/#comment-22306</guid>
		<description>Piyush;mdash;There&#039;s no good way in MATLAB to render text except via graphics commands into a figure window.  However, you can do it into an invisible figure and then use the print function to output to an image file.  I don&#039;t know whether the performance will be suitable for you or not.</description>
		<content:encoded><![CDATA[<p>Piyush;mdash;There&#8217;s no good way in MATLAB to render text except via graphics commands into a figure window.  However, you can do it into an invisible figure and then use the print function to output to an image file.  I don&#8217;t know whether the performance will be suitable for you or not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Piyush</title>
		<link>http://blogs.mathworks.com/steve/2008/04/14/relabeling-a-label-matrix/#comment-22251</link>
		<dc:creator>Piyush</dc:creator>
		<pubDate>Sat, 24 Oct 2009 17:59:04 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/04/14/relabeling-a-label-matrix/#comment-22251</guid>
		<description>Hi, I have a labeled matrix but one thing I would like to do is create text labels on the image matrix itself without having to open up a figure and plot text labels on them because I am trying to do it in a parallel process, and have it go really fast. For example I have circles that I am checking for their circularity and I just want to overlay text in the image itself over the circle with the circularity value. Is this possible with the current toolset Matlab provides? If not what is the recommended way to implement this?

Thanks,
Piyush</description>
		<content:encoded><![CDATA[<p>Hi, I have a labeled matrix but one thing I would like to do is create text labels on the image matrix itself without having to open up a figure and plot text labels on them because I am trying to do it in a parallel process, and have it go really fast. For example I have circles that I am checking for their circularity and I just want to overlay text in the image itself over the circle with the circularity value. Is this possible with the current toolset Matlab provides? If not what is the recommended way to implement this?</p>
<p>Thanks,<br />
Piyush</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2008/04/14/relabeling-a-label-matrix/#comment-21858</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 12 Jun 2009 17:13:58 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/04/14/relabeling-a-label-matrix/#comment-21858</guid>
		<description>Shahn&#8212;See &lt;a href=&quot;http://blogs.mathworks.com/steve/2008/03/25/bwlabel-search-order/&quot; rel=&quot;nofollow&quot;&gt;this post&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Shahn&mdash;See <a href="http://blogs.mathworks.com/steve/2008/03/25/bwlabel-search-order/" rel="nofollow">this post</a>.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

