<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168102</link>
    <title>MATLAB Central Newsreader - geometry center</title>
    <description>Feed for thread: geometry center</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 23 Apr 2008 08:23:03 -0400</pubDate>
      <title>geometry center</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168102#428354</link>
      <author>ahmed</author>
      <description>I wan't to move adrawing to the center of the image. &lt;br&gt;
i know that i have to find the geometric center of the &lt;br&gt;
image &lt;br&gt;
and move the drawing pixels such that the geometric center &lt;br&gt;
should reside at center of image.&lt;br&gt;
but i don't know how to implement these stepe in matlab &lt;br&gt;
can you help me. </description>
    </item>
    <item>
      <pubDate>Wed, 23 Apr 2008 09:48:00 -0400</pubDate>
      <title>Re: geometry center</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168102#428367</link>
      <author>alessandro mura</author>
      <description>I don't know exactly what is the center of a color image,&lt;br&gt;
but for a gray scale:&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
[x,y]=ndgrid([1:100],[1:100]);&lt;br&gt;
z=exp(-((x-50)/10).^2-((y-24)/10).^2);&lt;br&gt;
subplot(1,2,1)&lt;br&gt;
pcolor(x,y,z)&lt;br&gt;
colormap gray&lt;br&gt;
&lt;br&gt;
xc=mean(x(:).*z(:))/mean(z(:))&lt;br&gt;
yc=mean(y(:).*z(:))/mean(z(:))&lt;br&gt;
subplot(1,2,2)&lt;br&gt;
pcolor(x-xc,y-yc,z)&lt;br&gt;
&lt;br&gt;
regards&lt;br&gt;
&lt;br&gt;
Alessandro&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Alessandro Mura&lt;br&gt;
Istituto Nazionale di Astrofisica - IFSI&lt;br&gt;
&lt;a href=&quot;http://pptt4.ifsi-roma.inaf.it/~mura/index.html&quot;&gt;http://pptt4.ifsi-roma.inaf.it/~mura/index.html&lt;/a&gt;</description>
    </item>
    <item>
      <pubDate>Mon, 05 Jan 2009 16:47:01 -0500</pubDate>
      <title>Re: geometry center</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168102#619918</link>
      <author>chandni magoo</author>
      <description>hi&lt;br&gt;
i wanted to know the method of finding geometric center of an image&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Ahmed &quot; &amp;lt;mogwari2000@yahoo.com&amp;gt; wrote in message &amp;lt;fumrl7$4ck$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I wan't to move adrawing to the center of the image. &lt;br&gt;
&amp;gt; i know that i have to find the geometric center of the &lt;br&gt;
&amp;gt; image &lt;br&gt;
&amp;gt; and move the drawing pixels such that the geometric center &lt;br&gt;
&amp;gt; should reside at center of image.&lt;br&gt;
&amp;gt; but i don't know how to implement these stepe in matlab &lt;br&gt;
&amp;gt; can you help me. &lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Mon, 05 Jan 2009 17:06:02 -0500</pubDate>
      <title>Re: geometry center</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168102#619921</link>
      <author>Adam </author>
      <description>&quot;chandni magoo&quot; &amp;lt;chandnimalh@gmail.com&amp;gt; wrote in message &amp;lt;gjtdi5$avk$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; hi&lt;br&gt;
&amp;gt; i wanted to know the method of finding geometric center of an image&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
[nRow nCol] = size(theImage);&lt;br&gt;
xCenter = nCol/2;&lt;br&gt;
yCenter = nRow/2;&lt;br&gt;
&lt;br&gt;
~Adam</description>
    </item>
    <item>
      <pubDate>Mon, 05 Jan 2009 17:35:03 -0500</pubDate>
      <title>Re: geometry center</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168102#619926</link>
      <author>Matt </author>
      <description>&quot;Adam&quot; &amp;lt;not.real@email.com&amp;gt; wrote in message &amp;lt;gjtelq$nga$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;chandni magoo&quot; &amp;lt;chandnimalh@gmail.com&amp;gt; wrote in message &amp;lt;gjtdi5$avk$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; hi&lt;br&gt;
&amp;gt; &amp;gt; i wanted to know the method of finding geometric center of an image&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; [nRow nCol] = size(theImage);&lt;br&gt;
&amp;gt; xCenter = nCol/2;&lt;br&gt;
&amp;gt; yCenter = nRow/2;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ~Adam&lt;br&gt;
&lt;br&gt;
Actually, because MATLAB uses 1-based indexing, you will probably want&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;nbsp;[nRow nCol] = size(theImage);&lt;br&gt;
&amp;nbsp;xCenter = (nCol+1)/2;&lt;br&gt;
yCenter = (nRow+1)/2;</description>
    </item>
  </channel>
</rss>

