资源简介
这个项目只有MATLAB文件,该文件是基于MATLAB实现人脸识别功能的源码
代码片段和文件信息
%% derived from “Face Recognition With Radial Basis Function (RBF) Neural Networks“
%% which is written by M.J.ErS.Q.Wu J.W.Lu and H.L.Toh in 2002.
clear all;
close all;
ratio = 4;
class_num = 40;
sample_num = 10;
row_0 = 112;
line_0 = 92;
row = ceil(row_0 / ratio);
line = ceil(line_0 / ratio);
row_line = min(row line);
rowline = row * line;
load orl_4;
right_num_test = [];
right_num_train = [];
disp(‘orl fisherface now begin‘);
right_num = [];
for count = 5
tic;
count
train_num = count;
train_total = train_num * class_num;
test_num = sample_num - train_num;
test_total = test_num * class_num;
orl_train = zeros(rowline train_total);
orl_m_all = zeros(rowline1);
orl_m = zeros(rowlineclass_num);
for i = 1:class_num
for j = 1:train_num
kk = (i-1)*train_num + j;
orl_temp = double(orl(::ji));
%orl_temp = double(orl(::j+test_numi));
for p = 1:row
for q = 1:line
site = (p-1)*line + q;
orl_train(site kk) = orl_temp(pq);
end
end
orl_m_all = orl_m_all + orl_train(:kk);
orl_m(:i) = orl_m(:i) + orl_train(:kk);
end
orl_m(:i) = orl_m(:i)/train_num;
end
orl_m_all = orl_m_all / train_total;
orl_test = zeros(rowline test_total);
for i = 1:class_num
for j = 1:test_num
kk = (i-1)*test_num + j;
orl_temp = double(orl(::j+train_numi));
%orl_temp = double(orl(::ji));
for p = 1:row
for q = 1:line
site = (p-1)*line + q;
orl_test(site kk) = orl_temp(pq);
end
end
end
end
%% -------- 1.Perform fisherface method to reduce the demension of the feature space -------- %%
%%------- PCA -------%%
Sb = zeros(rowlineclass_num);
for i = 1:class_num
Sb(:i) = orl_m(:i) - orl_m_all;
end
% Sb0 = (Sb * Sb‘) / class_num; %% [rowline rowline]
Sw = zeros(rowlinetrain_total);
for i = 1:class_num
for j = 1:train_num
kk = (i-1)*train_num + j;
Sw(:kk) = orl_train(:kk) - orl_m(:i);
end
end
St = zeros(rowlinetrain_total);
for i = 1:class_num
for j = 1:train_num
kk = (i-1)*train_num + j;
St(:kk) = orl_train(:kk) - orl_m_all;
end
end
% St0 = (St * St‘) / train_total; %% [rowline rowline]
clear orl_m_all orl_m;
ss1 = (St‘ * St) / train_total; %% [train_total train_total]
% rr = rank(ss);
for rr1 = 164%rank(ss1)-1*class_num%:rank(ss1);%rank(ss1);%46;%
[V_St D_St] = eig(ss1);
dd = abs(eig(ss1));
[dd_value dd_site] = sort(dd);
temp2 = rr1;
temp1 = tra
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-08-06 21:30 基于MATLAB的人脸识别源码\
文件 9891 2009-02-05 21:14 基于MATLAB的人脸识别源码\shibie.m
相关资源
- pca matlab代码 数据降维
- 基于lpc的语音信号的分析与合成matl
- 基于MATLAB的pegasis路由算法研究
- 实战大数据 MATLAB数据挖掘详解与实践
- 数字图像处理高级应用:基于MATLAB与
- matlab实现对机读卡识别
- 一级倒立摆MATLAB与Adams联合仿真,保证
- 详解MATLAB数字图像处理-张德丰-高清扫
- MATLAB在数学建模中的应用【卓金武】
- 复合型法 matlab 仿真程序 2013最新版
- 实际海杂波数据统计特性分析 MATLAB
- K-L变换算法matlab实现
- MATLAB教程.pdf
- Matlab_robotic_toolbox.rar
- 先进PID控制与MATLAB仿真 第四版高清版
- MATLAB 2017b官方教程
- 数字调制解调技术的MATLAB与FPGA实现
- 滑模变结构控制MATLAB仿真_第3版_基本
- 多重网格法及matlab程序
- 基于matlab的多径信道下OFDM通信系统误
- matlab DFA降趋脉动分析算法实现
- PCA故障诊断matlab实现200654
- 数字调制解调技术的MATLAB与FPGA实现中
- MATLAB车道线识别程序及车道线识别测
- MATLAB GUI设计学习手记(罗华飞).r
- MATLAB图像处理详解.pdf
- MATLAB R2016a完全自学一本通 PDF高清版及
- 语音增强speech enhancement中英文版+书后
- 滑模变结构控制matlab仿真 第三版,基
- 鱼的分类和识别
评论
共有 条评论