Human Face Recognition

Matlab Program 2--for face recognition



Matlab program 2

 

clear;

I = imread('cara_11.jpg');

J= imread('cara_11.jpg');

BW1 =fft2(I); 

imshow(BW1);figure;

BW2 =fft2(J);

imshow(BW2);figure; 

P= conj(BW2);

imshow(P);

d = fft2(BW1.*BW2);

%c=xcorr(BW1,p);

%imshow(d);figure;

%imshow(c);

%S = P*BW2;

%Q = fft2(S,3,3);

%imshow(d);figure;

%plot(Q,Z);

d = fspecial('gaussian');

figure, freqz2(d,[64 64]), axis([-1 1 -1 1 0.8])              

 

 

 

 

                                                                                                                                         

                                              Figure 1                                              Figure2

 

 

 


Figure 3

 

 

 

                  First of all cara_11.jpg a same colour picture are read into I & J twice. Then fast fourier transformp of I & J are stored in BW1 & BW2 respectively.These two pictures are shown in figure1 & figure2.Then the multiplication of BW1 & complex conjugate of BW2 are fast fourier transformed and stored in d. If this peak is sharp then the two pictures are almost same but if the peak is not so sharp then we can conclude that there is difference in between those two pictures. As in the above case peak is  sharp, so we can conclude that the two faces are of two same human being.

Want To Know more with

Video ???

Contact for more learning: webmaster@freehost7com

 

 

 

Home

The contents of this webpage are copyrighted  2008 www.freehost7.com
 All Rights Reserved.