|
Human Face Recognition |
Matlab Program 3 for edge detection | |
|
|
Matlab Program 3 for edge detection
%edge detection of 2 same images & their correlation I = imread('cara1.jpg'); J= imread('cara1.jpg'); %J = imnoise(I,'salt & pepper',0.02); BW3 = edge(I,'canny'); BW4 = edge(J,'canny'); imshow(BW3);figure; imshow(BW4);figure; %cov(count(:,1)) p=corr2(BW3,BW4); %p=BW1 * BW2; [X,Y]=meshgrid(-1:.005:1); Z=peaks(p); imshow(p);figure; %plot(Z,p); mesh(X,Y,Z); Z = fspecial('gaussian'); figure, freqz2(Z,[64 64]), axis([-1 1 -1 1 0 .8])
Figure 1
Figure 3
This problem is used for edge detection purpose then correlation is done the ultimate result is stored in variable p. 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
The contents of this webpage are copyrighted © 2008 www.freehost7.com All Rights Reserved.
|