Thread Subject: plotting over images - different output resolution!

Subject: plotting over images - different output resolution!

From: Mario

Date: 22 Oct, 2008 20:29:02

Message: 1 of 1

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:

for count=1:s
filename=strcat(imgName,num2str(count+refImg-1),'.BMP');
I=imshow(filename);
img=imread(filename);
height = length(img(:,1));
hold on;
plot(x,height-y,'r');
plot(x,height-y,'g.');
plot(x(1:8:end),height-y(1:8:end),'b*');
img=['output/' inputName];
outImg=sprintf([img 'm%d.jpg'],count+refImg-1);
end

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?
I guess i should set a parameter in sprintf or use a different command! Suggestions?
Thank you!

Mario

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
overlap image r... Mario 22 Oct, 2008 16:30:22
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com