基于2D-LDA的人脸识别编码我要分享

Face recognition coding based on 2d-lda

2D-LDA 人脸识别

关注次数: 264

下载次数: 1

文件大小: 2768KB

代码分类: 智能算法

开发平台: matlab

下载需要积分: 1积分

版权声明:如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

代码描述

中文说明:

2维线性判别进行人脸识别的程序,很不错!采用ORL人脸库,取每人的1、3、5、7、9五幅图像作为训练图像,其余作为测试图像,进行二维线性判别。计算出特征向量矩阵,降序排列后,取前d(d=2,4,6,……,20)个特征向量组成的矩阵作为变换矩阵,对训练集合测试集进行特征重建,最后采用最近邻分类器。附有实验的结果。


English Description:

2-dimensional linear discrimination for face recognition program, very good! Using ORL face database, take each person's 1, 3, 5, 7 and 9 images as training images and the rest as test images for two-dimensional linear discrimination. Calculate the eigenvector matrix, arrange it in descending order, take the matrix composed of the first D (d = 2,4,6,..., 20) eigenvectors as the transformation matrix, reconstruct the features of the training set and the test set, and finally use the nearest neighbor classifier. The experimental results are attached


代码预览