|
Human Face Recognition |
Matlab Program 4--Noise inserted by function imnoise in same pictures | |
|
|
Matlab Program 4--Noise inserted by function imnoise in same pictures I = imread('cara1.jpg'); J= imread('cara1.jpg'); Ja = imnoise(I,'salt & pepper',0.02); %BW1 = im2bw(I,.5); %BW2= im2bw(J,.5); BW3 = edge(I,'canny'); BW4 = edge(Ja,'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 1])
Figure2
Figure3
Here two same pictures are used but noise is inserted in one of them by using imnoise() function. Three parameters are passed through this function. First one is the variable where the picture is saved in which noise is to be inserted, second one is the type of noise, third one is parameter.
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.
|