Human Face Recognition

Fourier transform of 2 diff alphanumeric chars & their correlation by fft2 function



MATLAB Program 5

%fourier transform of 2 diff alphanumeric chars & their correlation by fft2 function

clear;

I = imread('apple1.bmp');

J= imread('file.bmp');

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 1.3])

 

 

                            Figure1                                                                               Figure2

                                                                       

                                                          

Figure3

 

 

 

 

Figure4

 

 

First of all both the alphabets are read in I & J . Then fast fourier transform of the individual alphabets and the product of first alphabet & the complex conjugate of second alphabet is performed . Results are shown in fig1, fig2 ,fig3 & fig4 respectively.

 

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.