Ignore:
Timestamp:
07/24/2009 03:33:27 PM (10 years ago)
Author:
dave
Message:

eigenface user classification seems to work on the test video

File:
1 edited

Legend:

Unmodified
Added
Removed
  • foam/trunk/vision/src/PCAClassifier.cpp

    r94 r95  
    2121 
    2222PCAClassifier::PCAClassifier(const PCA &pca) : 
    23 Classifier(pca.GetFeatureSize()), 
     23Classifier(pca.GetParamsSize()), 
    2424m_PCA(pca) 
    2525{ 
     
    3232void PCAClassifier::AddFeature(int group, const Vector<float> &f) 
    3333{ 
    34         AddFeatureToGroup(group, m_PCA.Project(f)); 
     34        Vector<float> p=m_PCA.Project(f); 
     35        AddFeatureToGroup(group, p); 
    3536} 
    3637 
Note: See TracChangeset for help on using the changeset viewer.