Rank: 32805 based on downloads (last 30 days) and 0 files submitted
photo

Mak K

E-mail

Personal Profile:

Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Mak
Updated File Comments Rating
19 Jun 2009 a better code for LDA based face recognition I have modified the former code so that it runs faster and can be run on normal PCs. Author: Shahab Anbarjafari

first of all, I couldn't run the file because it doesn't have the files it needs

I read the code it is not LDA, it's PCA because you did the following:
1- loaded the pictures for training in one matrix as rows (face space)
2- loaded the rest of the pictures for test in another matrix
3- subtracted mean face from all of face space (zero mean face space)
4- covariance for zero mean face space
5- eigenvectors for covariance matrix
6- project the eigenvectors on every picture in train and test sets
7-measure the euclidean distance for test set
 
that is PCA

for LDA, you must get mean for each class
then the mean of all the classes
calculate within-class scatter matrix
calculate the between-class scatter matrix
then the eigenvectors for the product and so on

which you didn't do

 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com