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

Contact us at files@mathworks.com