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/Classifier.cpp

    r94 r95  
    3535        // possibly overkill to do this each time we add a new feature... 
    3636        CalcGroupMeans(); 
     37        //m_GroupMeans[group]=v; 
    3738} 
    3839 
     
    5859                i!=m_Features.end(); ++i) 
    5960        { 
    60                 Vector<float> mean; 
     61                Vector<float> mean(m_FeatureSize); 
     62                mean.Zero(); 
    6163                for (FeatureVec::iterator vi = i->second.begin(); vi!=i->second.end(); ++vi) 
    6264                { 
    6365                        mean+=*vi; 
    6466                } 
    65                 mean/=i->second.size(); 
     67                mean/=i->second.size();          
    6668                m_GroupMeans[i->first]=mean; 
    6769        } 
Note: See TracChangeset for help on using the changeset viewer.