- 14
- 0
- 约3.39千字
- 约 7页
- 2017-08-31 发布于河南
- 举报
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
您可能关注的文档
- 202683 大工14秋《数字通信原理》毕业清考在线测试(202683 big works 14 autumn digital communication principle graduation test online test).doc
- 2050年,我们的生活什么样(What were our lives like in 2050).doc
- 20个最有用的针刺处方(20 of the most useful acupuncture prescriptions).doc
- 20句至理名言(The 20 sentence of the true saying).doc
- 20种常见食品神奇功效(20 kinds of common food magic effect).doc
- 20篇作文(20 compositions).doc
- 2014最新阳泉交通公示(2014, the latest Yangquan traffic publicity).doc
- 210个字谜灯谜(210 puzzle lantern riddles).doc
- 21世纪想成功必看的——网商经(Twenty-first Century - net business must want to succeed).doc
- 21招 让脂肪燃烧大提速(21 strokes so that fat burning speed).doc
- 小区绿化施工协议书.docx
- 墙面施工协议书.docx
- 1 古诗二首(课件)--2025-2026学年统编版语文二年级下册.pptx
- (2026春新版)部编版八年级道德与法治下册《3.1《公民基本权利》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《4.3《依法履行义务》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.2《按劳分配为主体、多种分配方式并存》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.1《公有制为主体、多种所有制经济共同发展》PPT课件.pptx
- 初三教学管理交流发言稿.docx
- 小学生课外阅读总结.docx
- 餐饮门店夜经济运营的社会责任报告(夜间贡献)撰写流程试题库及答案.doc
原创力文档

文档评论(0)