1 / 7
文档名称:

PCA人脸识别算法Matlab版.doc

格式:doc   页数:7页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

PCA人脸识别算法Matlab版.doc

上传人:xxj16588 2015/10/4 文件大小:0 KB

下载得到文件列表

PCA人脸识别算法Matlab版.doc

相关文档

文档介绍

文档介绍:PCA人脸识别算法Matlab版
2010-11-18 19:30

function T = CreateDatabase(TrainDatabasePath)
% Align a set of face images (the training set T1, T2, ... , TM )
%
% Description: This function reshapes all 2D images of the training database
% into 1D column vectors. Then, it puts these 1D column vectors in a row to 
% construct 2D matrix 'T'.
%  
% 
% Argument:      TrainDatabasePath      - Path of the training database
%
% Returns:       T                      - A 2D matrix, containing all 1D image vectors.
%                                         Suppose all P images in the training database 
%                                         have the same size of MxN. So the length of 1D 
%                                         column vectors is MN and 'T' will be a MNxP 2D matrix.
%
% See also: STRCMP, STRCAT, RESHAPE
% Original version by Amir Hossein Omidvarnia, October 2007
%                      Email: ******@                  
%%%%%%%%%%%%%%%%%%%%%%%% File management
TrainFiles = dir(TrainDatabasePath);
Train_Number = 0;
for i = 1:size(TrainFiles,1)
    if not(strcmp(TrainFiles(i).name,'.')|strcmp(TrainFiles(i).name,'..')|strcmp(TrainFiles(i).name,''))
         Train_Number = Train_Number + 1; % Number of all images in the training database
     end
end
%%%%%%%%%%%%%%%%%%%%%%%% Construction of 2D matrix from 1D image vectors
T = [

最近更新

2025年度体育场馆雇佣劳务人员合作协议 9页

2025年度住宅社区保洁劳务合同 9页

2025年度传媒企业品牌形象设计与推广合同 9页

2025年度企业车辆租赁及车辆租赁平台运营服务.. 9页

第二讲成本概念及制造成本流转 27页

初中英语课堂教师话语分析研究 2页

智能设备维护服务合同版 6页

2025年度企业代理记账业务委托免责协议书 8页

2025年度人社部员工劳动合同劳动派遣服务合同.. 7页

智能家居设备采购合同样本 7页

2025年度亲子理财教育机构与家长孩子理财能力.. 9页

2025年度交通事故交通事故责任划分及财产损失.. 7页

2025年度互联网公司首席运营官(COO)聘用合同.. 7页

2025年度临时摊位租赁与客户关系管理服务合同.. 9页

2025年度中小企业财务管理代理协议 8页

2025年度个体工商户专业代账服务合同 9页

部分两自由度系统的振动 21页

独立审计的基本准则(ppt-41页) 40页

法泰公司带选择性保护断路器合作开发项目正式.. 1页

旅游住宿服务合作协议书 7页

施工队劳务分包合同标准文本 6页

施工方与甲方还款合同协议 5页

新车购买合同模板 6页

新能源设备采购与安装合同 6页

新能源汽车购买合同格式范文 8页

大潮差海域浮式防波堤锚泊系统研究 2页

新版船舶租赁合同范本 6页

新版标准房屋买卖合同范本 6页

新版建设工程设备租赁合同 6页

2025年工作记事周历 27页