Ignore:
Timestamp:
07/22/2009 10:59:15 AM (10 years ago)
Author:
dave
Message:

PCA updated - projection and resynthesis seem to work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • foam/trunk/vision/src/PCA.h

    r89 r90  
    3737        void AddFeature(Vector<float> v) { m_Features.push_back(v); } 
    3838        void Calculate(); 
     39         
     40        // remove eigenvectors from the transform 
     41        void Compress(unsigned int s, unsigned int e); 
     42         
     43        Vector<float> Project(Vector<float> v); 
     44        Vector<float> Synth(Vector<float> v); 
    3945 
    4046        static void RunTests(); 
     
    4349        const Matrix<float> &GetEigenTransform() { return m_EigenTransform; } 
    4450        const FeatureVec &GetFeatures() { return m_Features; } 
     51        const Vector<float> &GetMean() { return m_Mean; } 
     52         
     53         
     54        void Load(FILE *f); 
     55        void Save(FILE *f); 
    4556         
    4657private:         
Note: See TracChangeset for help on using the changeset viewer.