Ignore:
Timestamp:
07/23/2009 01:04:04 PM (10 years ago)
Author:
dave
Message:

added face classifier application, not working yet

File:
1 edited

Legend:

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

    r90 r94  
    3232        ~Classifier(); 
    3333         
    34         void AddFeature(int group, const Vector<float> &f); 
    35         virtual int Classify(const Vector<float> &f) = 0; 
     34        virtual void AddFeature(int group, const Vector<float> &f) = 0; 
     35        virtual int Classify(const Vector<float> &f, float &error) = 0; 
    3636         
    3737protected: 
     38         
    3839        void CalcMean(); 
    39          
     40        void CalcGroupMeans(); 
     41        void AddFeatureToGroup(int group, const Vector<float> &f); 
     42 
    4043        typedef std::vector<Vector<float> > FeatureVec; 
    4144        typedef std::map<int,FeatureVec> FeatureMap; 
     
    4750 
    4851        Vector<float> m_Mean; 
    49          
     52        std::map<int,Vector<float> > m_GroupMeans; 
    5053}; 
    5154 
Note: See TracChangeset for help on using the changeset viewer.