<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163160</link>
    <title>MATLAB Central Newsreader - Combining image and plotted data</title>
    <description>Feed for thread: Combining image and plotted data</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>Tue, 05 Feb 2008 05:04:01 -0500</pubDate>
      <title>Combining image and plotted data</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163160#412969</link>
      <author>Doug Chan</author>
      <description>Hi,&lt;br&gt;
I have plotted some data onto a 1280x960 RGB image file&lt;br&gt;
(imshow, hold on, plot(x,y)).&lt;br&gt;
1) Can I update the 1280x960 image matrix to include this&lt;br&gt;
newly plotted data?&lt;br&gt;
2) If not, how can I save the 2D-plot+image without losing&lt;br&gt;
the resolution of the original image? I used getframe but it&lt;br&gt;
resized it and included the figure border.&lt;br&gt;
Thanks.</description>
    </item>
    <item>
      <pubDate>Tue, 05 Feb 2008 05:41:04 -0500</pubDate>
      <title>Re: Combining image and plotted data</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163160#412973</link>
      <author>Yumnam Kirani Singh</author>
      <description>there are some options, either you copy the image using copy figure option of the figure window and paste it in a new window of mspaint. You can also try Save As option under File menu of the figure window. here you can the format of the image file to be saved.</description>
    </item>
    <item>
      <pubDate>Mon, 07 Apr 2008 14:31:01 -0400</pubDate>
      <title>Combining image and plotted data</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163160#425176</link>
      <author>Mario </author>
      <description>I have the following problem:&lt;br&gt;
&lt;br&gt;
I have a bmp image and a vector of points. I want to plot&lt;br&gt;
the points on the image and save the results. I tried with:&lt;br&gt;
&lt;br&gt;
h=figure();&lt;br&gt;
I=imshow(filenameIN);&lt;br&gt;
hold on;&lt;br&gt;
plot(x,y,&amp;#8217;r-+&amp;#8217;);&lt;br&gt;
hold off;&lt;br&gt;
saveas(h,filenameOUT);&lt;br&gt;
&lt;br&gt;
It works fine if I &quot;stay&quot; in MATLAB and I do anything else.&lt;br&gt;
But if I open, say, a web page while MATLAB is running these&lt;br&gt;
commands, I get the webpage saved on the output image.&lt;br&gt;
Is there any way to solve this problem (possibly without&lt;br&gt;
using imshow but using imread instead, cause I&amp;#8217;m not&lt;br&gt;
interested in displaying the image)?&lt;br&gt;
Thanks in advance for your help.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Yumnam Kirani Singh &amp;lt;kirani.singh@gmail.com&amp;gt; wrote in&lt;br&gt;
message&lt;br&gt;
&amp;lt;12336287.1202190094652.JavaMail.jakarta@nitrogen.mathforum.org&amp;gt;...&lt;br&gt;
&amp;gt; there are some options, either you copy the image using&lt;br&gt;
copy figure option of the figure window and paste it in a&lt;br&gt;
new window of mspaint. You can also try Save As option under&lt;br&gt;
File menu of the figure window. here you can the format of&lt;br&gt;
the image file to be saved.</description>
    </item>
    <item>
      <pubDate>Mon, 07 Apr 2008 16:09:02 -0400</pubDate>
      <title>Re: Combining image and plotted data</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163160#425197</link>
      <author>Mario </author>
      <description>I figured it out using the PRINT command but the output&lt;br&gt;
image has not the same size as the input one. &lt;br&gt;
How can I set the parameters of the print function?</description>
    </item>
    <item>
      <pubDate>Mon, 07 Apr 2008 16:41:05 -0400</pubDate>
      <title>Re: Combining image and plotted data</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163160#425208</link>
      <author>Mario </author>
      <description>ok.. this is the solution to my problem:&lt;br&gt;
&lt;br&gt;
h=figure(100);&lt;br&gt;
for count=1:s&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;xy=marks{count};&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;hold on;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;plot(x(:,1),y(:,2),'r-+');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;hold off;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;outImg=sprintf('test%d.bmp',count);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(gcf,'PaperUnits','inches','PaperPosition',[0 0&lt;br&gt;
6.4/1.5 4.8/1.5])&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;eval(['print -dbmp ' outImg])     &lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
it works but the output image is 641x480 and not 640x480? why?</description>
    </item>
    <item>
      <pubDate>Mon, 07 Apr 2008 17:19:02 -0400</pubDate>
      <title>Re: Combining image and plotted data</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163160#425219</link>
      <author>us</author>
      <description>&quot;Mario &quot;:&lt;br&gt;
&amp;lt;SNIP causing CSSMers the blues...&lt;br&gt;
&lt;br&gt;
&amp;gt; ok.. this is the solution to my problem:&lt;br&gt;
&amp;gt;     eval(['print -dbmp ' outImg])     &lt;br&gt;
&lt;br&gt;
it hurts so much - i need a drink...&lt;br&gt;
us</description>
    </item>
    <item>
      <pubDate>Mon, 07 Apr 2008 17:51:01 -0400</pubDate>
      <title>Re: Combining image and plotted data</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163160#425223</link>
      <author>Mario </author>
      <description>it was just a rough test! I took the cue from&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/support/solutions/data/1-16WME.html?solution=1-16WME&quot;&gt;http://www.mathworks.com/support/solutions/data/1-16WME.html?solution=1-16WME&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Anyway, I forgot to put the following commands on the&lt;br&gt;
previous code (before HOLD ON):&lt;br&gt;
&lt;br&gt;
filename = sprintf('original.%d.bmp',count);&lt;br&gt;
I=imshow(filename);&lt;br&gt;
&lt;br&gt;
btw.. any idea to solve my problem without displaying the&lt;br&gt;
images?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;us &quot; &amp;lt;us@neurol.unizh.ch&amp;gt; wrote in message&lt;br&gt;
&amp;lt;ftdl26$d23$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Mario &quot;:&lt;br&gt;
&amp;gt; &amp;lt;SNIP causing CSSMers the blues...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; ok.. this is the solution to my problem:&lt;br&gt;
&amp;gt; &amp;gt;     eval(['print -dbmp ' outImg])     &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; it hurts so much - i need a drink...&lt;br&gt;
&amp;gt; us</description>
    </item>
  </channel>
</rss>

