当前位置: 首页 > 工具软件 > Matlab4CRE > 使用案例 >

人脸识别 pca matlab,Matlab主成份分析(PCA)人脸识别源代码

陶裕
2023-12-01

包含的文件有:

createDistMat.m,pca.m,feret.m,dup1,dup2,fb,fc,feretGallery,listAll,trainList

使用方法:

Run the function pca to create a variable pcaProj.

Input variable pcaProj to the function createDistMat, thus creating a distance

matrix that you then use as an input to the function feret. See headers of

all three functions for more details. The sequence should look something like this:

>> load trainList.mat

>> pca ('C:/FERET_Normalised/', trainList, 200);

>> pcaDistMatCos = createDistMat(pcaProj, 'COS');

>> pcaResultsCOS = feret(pcaDistMatCos, 50);

>> pcaResultsCOS.perc(1)         % gives rank 1 result

>> plot(pcaResultsL1.cms)        % plots the CMS curve

 类似资料: