From: satyam surendra on
"wilson " <wilson_silver3000(a)hotmail.com> wrote in message <hda6ns$oar$1(a)fred.mathworks.com>...
> Image i get is from:
> http://salmaworld.files.wordpress.com/2009/09/beautiful-face-wallpapers_11213_1280x1024.jpg
> But i already crop it become small only can see the face.
>
> I = imread('face 2.jpg');
> [X Y] = size(I);
> for i=1:X
> for j = 1:Y/3
>
> if (I(i,j,1)<90)&&(I(i,j,2)<80)&&(I(i,j,3)<100)
>
> I(i,j,1)=1;
> I(i,j,2)=1;
> I(i,j,3)=1;
> else
> I(i,j,1)=255;
> I(i,j,2)=255;
> I(i,j,3)=255;
> end
> end
> end
> figure, imshow(I);
> I = rgb2gray(I);
>
> BW2 = edge(I,'canny',0.1);
> figure, imshow(BW2);
>
> From the above coding i already change it become binary! After that how am i gonna crop the eyes? So which point should i take as the 1st point and how am i gonna scan the picture through?




Hey m just a beginner in matlab image scanning.. m doing a project in that...can u plz tell why u ran d second loop till y/3......is it bcoz of the size of the face....what if we dont know what the image is gonna be....>???