ica人脸识别算法实例matlab源码(ICA face recognition algorithm examples, matlab source code).docVIP

  • 14
  • 0
  • 约3.39千字
  • 约 7页
  • 2017-08-31 发布于河南
  • 举报

ica人脸识别算法实例matlab源码(ICA face recognition algorithm examples, matlab source code).doc

ica人脸识别算法实例matlab源码(ICA face recognition algorithm examples, matlab source code)

ica人脸识别算法实例matlab源码(ICA face recognition algorithm examples, matlab source code) %%%%%%%%%%%%%%%%%%%%%%%%%% initialization%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CLC; clear all; close all; %%%%%%%%%%%%%% read the original image and the output image, mixed, mixed%%%%%%%%%%%%%%%%%% % reads the original image before mixing and displays T=0:1/100:9; I1=sin (t); I2=randn (1901); I3=square (4*t); Subplot (4,3,1), plot (I1), title (` input signal 1), Subplot (4,3,2), plot (I2), title (` input signal 2), Subplot (4,3,3), plot (I3), title (` input signal 3), % to make up a matrix S=[I1; I2; I3];%; the number of pictures is the number of variables; the number of pixels in the picture is the number of samples % so S_all is a variable number * sampling number of matrices Sweight=randn (size (S, 1));% takes a random matrix as the weighted matrix of signal mixing MixedS=Sweight*S;% gets three mixed signal matrices % rearranged and outputs the mixing matrix Subplot (4,3,4), plot (MixedS (1,:)), title (` mixed signal 1), Subplot (4,3,5), plot (MixedS (2,:)), title (` mixed signal 2), Subplot (4,3,6), plot (MixedS (3,:)), title (` mixed signal 3), MixedS_bak=MixedS;% back up the mixed data so that it can be called directly when it is restored %%%%%%%%%%%%%%%%%%%%%%%%%% standard%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% MixedS_mean=zeros (3,1); For i=1:3 MixedS_mean (I) =mean (MixedS (I::)); End% calculates the mean of MixedS For i=1:3 For j=1:size (MixedS, 2) MixedS (I, J), =MixedS (I, J), -MixedS_mean (I); End End %%%%%%%%%%%%%%%%%%%%%%%%%%% albino%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% MixedS_cov=cov (MixedS);% cov is a function of covariance [E, D]=eig (MixedS_cov);% decomposition of the covariance function of the picture matrix Q=inv (sqrt (D)) * (E) ;% Q is an albino matrix MixedS_white=Q*MixedS;% MixedS_white is the picture matrix after whitening IsI=cov (MixedS_white);% IsI should be the unit matrix %%%%%%%%%%%%%%%%%%%%%%%% FASTICA algorithm%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% X=MixedS_white

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档