From: Marcus on 30 Jan 2010 18:04 Image taken from http://images.google.co.uk/imgres?imgurl=http://www.uni-regensburg.de/Fakultaeten/phil_Fak_II/Psychologie/Psy_II/beautycheck/english/durchschnittsgesichter/m%2801-32%29_gr.jpg&imgrefurl=http://www.uni-regensburg.de/Fakultaeten/phil_Fak_II/Psychologie/Psy_II/beautycheck/english/durchschnittsgesichter/durchschnittsgesichter.htm&usg=___SB91u0fznpZknb_dPfxwJUprk4=&h=400&w=320&sz=89&hl=en&start=2&sig2=lrJOAytrADN9qHlcSonSCQ&tbnid=aY4YUE1-ZhtbuM:&tbnh=124&tbnw=99&prev=/images%3Fq%3Dface%26gbv%3D2%26hl%3Den%26sa%3DG&ei=f7lkS-SVIs2NjAfm6eW_Bg 2 image taken the male and the female Then 1st step, a = imread('male.jpg'); b = imcrop(a); %crop the mouth out example imshow(b); saveas(gca,'b','bmp'); Then 2nd step, a = imread('female.jpg'); b = imcrop(a); %crop the mouth out example imshow(b); saveas(gca,'b','bmp'); But the output i get is (1200x900) its too big! And now i wan to standardize 2 of the photo become smaller size how can i do it? And i also dont wan the white background in the picture i just wan the picture that shown the crop things that i wanted how to do it?
From: ImageAnalyst on 30 Jan 2010 20:13 Where are you specifying the cropping boundaries? Use imwrite() to save the cropped image, not saveas().
From: ImageAnalyst on 30 Jan 2010 20:14 Use imresize() to make the dimensions of the two images match.
From: Marcus on 31 Jan 2010 16:13 the cropping boundary is mouth i just use simple way imcrop the main point is i wan to save the picture. I changed this saveas(gca,'b','bmp'); to imwrite(b,'croppedImage','bmp'); But it save an empty file for me why?
From: ImageAnalyst on 31 Jan 2010 20:15 Before you call imwrite(), call "whos" and tell me what it says. b must be an integer or logical.
|
Next
|
Last
Pages: 1 2 3 Prev: GUI, pausing/waiting for keystroke - out of sync Next: princomp function |