<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/247868</link>
    <title>MATLAB Central Newsreader - Flip horizontal axis on image</title>
    <description>Feed for thread: Flip horizontal axis on image</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>Mon, 30 Mar 2009 20:49:02 -0400</pubDate>
      <title>Flip horizontal axis on image</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/247868#638799</link>
      <author>Sven </author>
      <description>Hi there,&lt;br&gt;
&lt;br&gt;
I have an image with known pixel locations on which I want to overlay some points. Something like:&lt;br&gt;
&lt;br&gt;
figure&lt;br&gt;
imagesc(xScale, yScale, myImage)&lt;br&gt;
hold on&lt;br&gt;
plot(myPts(:,1), myPts(:,2),'ro')&lt;br&gt;
&lt;br&gt;
Now, imagine that I wanted to flip the image (and associated points) vertically. I could simply do this by toggling between 'axis xy' and 'axis ij'. I like this.&lt;br&gt;
&lt;br&gt;
What I want to do next, however, is to flip things horizontally. I don't think there's a built in axis command to do this. Also, I cannot do the following due to an imagesc error (x and y axes must be increasing):&lt;br&gt;
&lt;br&gt;
myImage = flipdim(myImage,2);&lt;br&gt;
yScale = flipdim(yScale,2);&lt;br&gt;
figure&lt;br&gt;
imagesc(xScale, yScale, myImage)&lt;br&gt;
&lt;br&gt;
Is there a fix to this? I essentially have an X-Ray image with bone locations stored, and I want to flip it horizontally so that I'm looking from the 'other side' of the xray. &lt;br&gt;
&lt;br&gt;
Let me know if you've got any clues.&lt;br&gt;
Cheers,&lt;br&gt;
Sven.</description>
    </item>
    <item>
      <pubDate>Mon, 30 Mar 2009 20:55:04 -0400</pubDate>
      <title>Re: Flip horizontal axis on image</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/247868#638801</link>
      <author>Jos </author>
      <description>&quot;Sven&quot; &amp;lt;sven.holcombe@gmail.deleteme.com&amp;gt; wrote in message &amp;lt;gqrb7u$jfs$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;lt;SNIP ... in need of direction change ...&lt;br&gt;
&lt;br&gt;
set(gca,'xdir','reverse')&lt;br&gt;
&lt;br&gt;
hth&lt;br&gt;
Jos</description>
    </item>
    <item>
      <pubDate>Mon, 30 Mar 2009 21:02:01 -0400</pubDate>
      <title>Re: Flip horizontal axis on image</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/247868#638804</link>
      <author>Sven </author>
      <description>&quot;Jos &quot; &amp;lt;#10584@fileexchange.com&amp;gt; wrote in message &amp;lt;gqrbj8$b8g$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Sven&quot; &amp;lt;sven.holcombe@gmail.deleteme.com&amp;gt; wrote in message &amp;lt;gqrb7u$jfs$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;lt;SNIP ... in need of direction change ...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; set(gca,'xdir','reverse')&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; hth&lt;br&gt;
&amp;gt; Jos&lt;br&gt;
&lt;br&gt;
Ha, knew it had to be in there somewhere. Thanks!</description>
    </item>
  </channel>
</rss>

