<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/238001</link>
    <title>MATLAB Central Newsreader - plotting over images - different output resolution!</title>
    <description>Feed for thread: plotting over images - different output resolution!</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, 22 Oct 2008 20:29:02 -0400</pubDate>
      <title>plotting over images - different output resolution!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/238001#606867</link>
      <author>Mario </author>
      <description>Hi all, I'm facing a problem with image resolution. I'm dealing with 780x250 bmp images and an array of points. I want to print these points over the pictures and I do it in this way:&lt;br&gt;
&lt;br&gt;
for count=1:s&lt;br&gt;
filename=strcat(imgName,num2str(count+refImg-1),'.BMP');&lt;br&gt;
I=imshow(filename);&lt;br&gt;
img=imread(filename);&lt;br&gt;
height = length(img(:,1));&lt;br&gt;
hold on;&lt;br&gt;
plot(x,height-y,'r');&lt;br&gt;
plot(x,height-y,'g.');&lt;br&gt;
plot(x(1:8:end),height-y(1:8:end),'b*');&lt;br&gt;
img=['output/' inputName];&lt;br&gt;
outImg=sprintf([img 'm%d.jpg'],count+refImg-1);&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
it works but unfortunately the output is in a different resolution (1200x900). The images contain my output in the center but are surrounded by a white border. How can i delete this and get my output as 780x250 (jpg or bmp) image? &lt;br&gt;
I guess i should set a parameter in sprintf or use a different command! Suggestions?&lt;br&gt;
Thank you!&lt;br&gt;
&lt;br&gt;
Mario</description>
    </item>
  </channel>
</rss>

