⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 eigenfacecore.m

📁 Face recognition using webcam and this data.if the person exist means its gives the serial data out.
💻 M
字号:
function [m, A,L_eig_vec, Eigenfaces] = EigenfaceCore(T)

% Calculating the mean image 
m = mean(T,2);
Train_Number = size(T,2);

%Calculating the deviation of each image from mean image
A = [];  
for i = 1 : Train_Number
    temp = double(T(:,i)) - m; % Ai = Ti - m
    A = [A temp]; 
end

%Eigenvalues
L = A'*A; 
[V D] = eig(L); 
L_eig_vec = [];
for i = 1 : size(V,2) 
    if( D(i,i)>1 )
        L_eig_vec = [L_eig_vec V(:,i)];
    end
end

%Calculating the eigenvectors of covariance matrix 'C'
Eigenfaces = A * L_eig_vec;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -