Saveas vs. print command
- From: "Neel" <nilanjan@xxxxxxxxx>
- Date: 17 Jul 2006 11:06:43 -0700
Hi,
I am having a trouble saving a figure using "print" command. If I
use the "saveas" command instead, it saves as displayed on screen but I
can't specify the resolution I want as using "print". I attached a
small snippet of code below for you to see the difference I am talking
about. Can anybody help?
Use the code below followed by either
print -djpeg -r300 output
or saveas(gcf,'output','jpg');
There is visual difference between the two jpeg images produced (not
only difference in resolution).
thanks
Neel
% code
image_1 = rand(320,240);
image_2 = image_1;
image_3 = image_1;
image_4 = image_1;
image_5 = image_1;
image_6 = image_1;
fighandle = figure; subplot(2,3,1), imagesc(image_1);
set(gcf,'Position',[25 100 1200 800]);
axis equal; axis tight; drawnow;
title('Original Hand Image');
figure(fighandle); subplot(2,3,2), imagesc(image_2);
axis equal; axis tight; colormap(gray); drawnow;
title('Grayscale Hand Image');
figure(fighandle); subplot(2,3,3), imagesc(image_3);
axis equal; axis tight; colormap(gray); drawnow;
title('Grayscale and Normalized Hand Image');
figure(fighandle); subplot(2,3,4), imagesc(image_4);
axis equal; axis tight; drawnow; colormap(gray);
title('Binary Hand Image');
figure(fighandle); subplot(2,3,5), imagesc(image_5);
axis equal; axis tight; drawnow; colormap(gray);
title('Denoised and Smoothed Binary Hand Image');
figure(fighandle); subplot(2,3,6), imagesc(image_6);
axis equal; axis tight; drawnow;
title('Masked Hand Image');
.
- Prev by Date: Printing problems Linux 2006a
- Next by Date: turn $6 into $6000 in two weeks... legally
- Previous by thread: Printing problems Linux 2006a
- Next by thread: turn $6 into $6000 in two weeks... legally
- Index(es):
Relevant Pages
|