<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163066</link>
    <title>MATLAB Central Newsreader - display centre of an image</title>
    <description>Feed for thread: display centre of an image</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The 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>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sun, 03 Feb 2008 08:44:01 -0500</pubDate>
      <title>display centre of an image</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163066#412660</link>
      <author>ramya </author>
      <description>can someone tell me how to display the centre of an &lt;br&gt;
image.. plzzzz...i need to display the image with a red &lt;br&gt;
mark in the centre.. how do i do that???&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Sun, 03 Feb 2008 11:59:01 -0500</pubDate>
      <title>Re: display centre of an image</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163066#412667</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;fo3ush$qg$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
ramya  &amp;lt;tulips2000@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;can someone tell me how to display the centre of an &lt;br&gt;
&amp;gt;image.. plzzzz...i need to display the image with a red &lt;br&gt;
&amp;gt;mark in the centre.. how do i do that???&lt;br&gt;
&lt;br&gt;
get() the Parent of the image. It will be an axis.&lt;br&gt;
get() the XLim of the axis. This will be a vector of length 2.&lt;br&gt;
get() the YLim of the axis. This will be a vector of length 2.&lt;br&gt;
Average the two elements of the XLim.&lt;br&gt;
Average the two elements of the YLim.&lt;br&gt;
The two averages are the X and Y coordinates of the centre.&lt;br&gt;
plot() at that location with an appropriate color and marker&lt;br&gt;
specification.&lt;br&gt;
-- &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;"History is a pile of debris"                     -- Laurie Anderson&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Sun, 03 Feb 2008 13:16:02 -0500</pubDate>
      <title>Re: display centre of an image</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163066#412674</link>
      <author>Vihang Patil</author>
      <description>"ramya " &amp;lt;tulips2000@gmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fo3ush$qg$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; can someone tell me how to display the centre of an &lt;br&gt;
&amp;gt; image.. plzzzz...i need to display the image with a red &lt;br&gt;
&amp;gt; mark in the centre.. how do i do that???&lt;br&gt;
&lt;br&gt;
load clown&lt;br&gt;
imshow(X,map);&lt;br&gt;
hold on;&lt;br&gt;
plot(size(X,2)/2,size(X,1)/2,'ro','LineWidth',2);&lt;br&gt;
%doc plot&lt;br&gt;
&lt;br&gt;
HTH&lt;br&gt;
Vihang&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
