<?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: Determining point positions in MRI peg phantom</title>
	<atom:link href="http://blogs.mathworks.com/steve/2006/06/10/determining-point-position-in-mri-phantom/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/steve/2006/06/10/determining-point-position-in-mri-phantom/</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: Image vision</title>
		<link>http://blogs.mathworks.com/steve/2006/06/10/determining-point-position-in-mri-phantom/#comment-24802</link>
		<dc:creator>Image vision</dc:creator>
		<pubDate>Fri, 20 Jan 2012 14:06:27 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=62#comment-24802</guid>
		<description>Hi, 
Could you please suggest something (code) for getting objects from above bw image using centroids?

regards,
from

Image Vision</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Could you please suggest something (code) for getting objects from above bw image using centroids?</p>
<p>regards,<br />
from</p>
<p>Image Vision</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Eddins</title>
		<link>http://blogs.mathworks.com/steve/2006/06/10/determining-point-position-in-mri-phantom/#comment-24764</link>
		<dc:creator>Steve Eddins</dc:creator>
		<pubDate>Thu, 29 Dec 2011 12:55:50 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=62#comment-24764</guid>
		<description>Bri&#8212;Yes, you can ask regionprops to compute multiple measurements:

&lt;pre class=&quot;code&quot;&gt;
s = regionprops(bw, &#039;Area&#039;, &#039;Centroid&#039;, &#039;Solidity&#039;);
&lt;/pre&gt;

And you can convert the measurements from struct array form to vectors (or matrices) using the comma-separated list syntax for struct arrays:

&lt;pre class=&quot;code&quot;&gt;
area = cat(1,s.Area);
centroids = cat(1,s.Centroid);
&lt;/pre&gt;

See my &lt;a href=&quot;http://blogs.mathworks.com/steve/2011/06/21/advanced-maneuvers-with-regionprops/&quot; rel=&quot;nofollow&quot;&gt;21-Jun-2011 post&lt;/a&gt; for an example of labeling objects with text.</description>
		<content:encoded><![CDATA[<p>Bri&mdash;Yes, you can ask regionprops to compute multiple measurements:</p>
<pre class="code">
s = regionprops(bw, 'Area', 'Centroid', 'Solidity');
</pre>
<p>And you can convert the measurements from struct array form to vectors (or matrices) using the comma-separated list syntax for struct arrays:</p>
<pre class="code">
area = cat(1,s.Area);
centroids = cat(1,s.Centroid);
</pre>
<p>See my <a href="http://blogs.mathworks.com/steve/2011/06/21/advanced-maneuvers-with-regionprops/" rel="nofollow">21-Jun-2011 post</a> for an example of labeling objects with text.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bri</title>
		<link>http://blogs.mathworks.com/steve/2006/06/10/determining-point-position-in-mri-phantom/#comment-24760</link>
		<dc:creator>Bri</dc:creator>
		<pubDate>Wed, 28 Dec 2011 20:47:41 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=62#comment-24760</guid>
		<description>Hi Steve,

2 questions: 

1) Is there any way to capture multiple regionprops (e.g. area, centroid, solidity, etc.) and generate an array of the data, to be used later for statistical processing?

2) Is there any way to label the index numbers next to each object?

Thank you very much in advance.</description>
		<content:encoded><![CDATA[<p>Hi Steve,</p>
<p>2 questions: </p>
<p>1) Is there any way to capture multiple regionprops (e.g. area, centroid, solidity, etc.) and generate an array of the data, to be used later for statistical processing?</p>
<p>2) Is there any way to label the index numbers next to each object?</p>
<p>Thank you very much in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/06/10/determining-point-position-in-mri-phantom/#comment-24692</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 28 Nov 2011 14:21:53 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=62#comment-24692</guid>
		<description>Mike&#8212;Try something like this:

&lt;pre class=&quot;code&quot;&gt;
bw = imread(&#039;text.png&#039;);
s = regionprops(bw,&#039;Centroid&#039;)
centroids = cat(1, s.Centroid)
rounded_centroids = round(centroids)
c = rounded_centroids(:,1);
r = rounded_centroids(:,2);
ind = sub2ind(size(bw), r, c);
bw_new = false(size(bw));
bw_new(ind) = true;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Mike&mdash;Try something like this:</p>
<pre class="code">
bw = imread('text.png');
s = regionprops(bw,'Centroid')
centroids = cat(1, s.Centroid)
rounded_centroids = round(centroids)
c = rounded_centroids(:,1);
r = rounded_centroids(:,2);
ind = sub2ind(size(bw), r, c);
bw_new = false(size(bw));
bw_new(ind) = true;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Alonzo</title>
		<link>http://blogs.mathworks.com/steve/2006/06/10/determining-point-position-in-mri-phantom/#comment-24640</link>
		<dc:creator>Mike Alonzo</dc:creator>
		<pubDate>Tue, 15 Nov 2011 20:44:27 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=62#comment-24640</guid>
		<description>Hi Steve,

I used this example to generate centroids of the regions output by an imextendedmax calculation.  My goal though is to have these centroids in raster format (basically, i just wanted to shrink the extended max output to a bunch of single pixels). 

Could you assist me in converting the centroids back to a bw image or let me know if you think there is a better way to get where i&#039;m going?

Thanks,
Mike</description>
		<content:encoded><![CDATA[<p>Hi Steve,</p>
<p>I used this example to generate centroids of the regions output by an imextendedmax calculation.  My goal though is to have these centroids in raster format (basically, i just wanted to shrink the extended max output to a bunch of single pixels). </p>
<p>Could you assist me in converting the centroids back to a bw image or let me know if you think there is a better way to get where i&#8217;m going?</p>
<p>Thanks,<br />
Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/06/10/determining-point-position-in-mri-phantom/#comment-15947</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 04 Dec 2007 14:03:30 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=62#comment-15947</guid>
		<description>Keely&#8212;Are you looking for something more besides extracting a subimage?  As in &lt;tt&gt;f_sub = f(r1:r2, c1:c2)&lt;/tt&gt;?</description>
		<content:encoded><![CDATA[<p>Keely&mdash;Are you looking for something more besides extracting a subimage?  As in <tt>f_sub = f(r1:r2, c1:c2)</tt>?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keely</title>
		<link>http://blogs.mathworks.com/steve/2006/06/10/determining-point-position-in-mri-phantom/#comment-15649</link>
		<dc:creator>Keely</dc:creator>
		<pubDate>Tue, 27 Nov 2007 19:53:11 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=62#comment-15649</guid>
		<description>Hi Steve,
I am plotting contours of water data across the globe. I have found a way to zoom in on a region of interest, say North America, using xlim and ylim. However, I now want to extract the data for the zoomed in region. I want to create a matrix which stores the position and value for the whole box, as well as just for the region within a particular contour I choose. Thanks for any help.</description>
		<content:encoded><![CDATA[<p>Hi Steve,<br />
I am plotting contours of water data across the globe. I have found a way to zoom in on a region of interest, say North America, using xlim and ylim. However, I now want to extract the data for the zoomed in region. I want to create a matrix which stores the position and value for the whole box, as well as just for the region within a particular contour I choose. Thanks for any help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/06/10/determining-point-position-in-mri-phantom/#comment-13707</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Sat, 03 Nov 2007 20:41:34 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=62#comment-13707</guid>
		<description>Amani&#8212;If the input label matrix is two-dimensional, then &lt;tt&gt;BoundingBox&lt;/tt&gt; is a four-element vector.  The first two elements give the coordinates of the upper left corner of the box.  The third and fourth elements give the width and height of the box.</description>
		<content:encoded><![CDATA[<p>Amani&mdash;If the input label matrix is two-dimensional, then <tt>BoundingBox</tt> is a four-element vector.  The first two elements give the coordinates of the upper left corner of the box.  The third and fourth elements give the width and height of the box.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amani</title>
		<link>http://blogs.mathworks.com/steve/2006/06/10/determining-point-position-in-mri-phantom/#comment-13698</link>
		<dc:creator>Amani</dc:creator>
		<pubDate>Sat, 03 Nov 2007 19:19:23 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=62#comment-13698</guid>
		<description>hi 
I looked at it, but I want more explainiton.</description>
		<content:encoded><![CDATA[<p>hi<br />
I looked at it, but I want more explainiton.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Administrator</title>
		<link>http://blogs.mathworks.com/steve/2006/06/10/determining-point-position-in-mri-phantom/#comment-13646</link>
		<dc:creator>Administrator</dc:creator>
		<pubDate>Sat, 03 Nov 2007 12:48:09 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=62#comment-13646</guid>
		<description>Amani&#8212;Look at the documentation for the &lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/images/regionprops.html&quot; rel=&quot;nofollow&quot;&gt;&lt;tt&gt;regionprops&lt;/tt&gt;&lt;/a&gt; function.  Specifically look at the description of the &lt;tt&gt;&#039;BoundingBox&#039;&lt;/tt&gt; measurement.</description>
		<content:encoded><![CDATA[<p>Amani&mdash;Look at the documentation for the <a href="http://www.mathworks.com/access/helpdesk/help/toolbox/images/regionprops.html" rel="nofollow"><tt>regionprops</tt></a> function.  Specifically look at the description of the <tt>'BoundingBox'</tt> measurement.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

