fixed grammar error
authorMaria Dimashova <no@email>
Fri, 24 Sep 2010 17:03:25 +0000 (17:03 +0000)
committerMaria Dimashova <no@email>
Fri, 24 Sep 2010 17:03:25 +0000 (17:03 +0000)
modules/traincascade/cascadeclassifier.cpp
modules/traincascade/cascadeclassifier.h

index 908a7e1..a062238 100644 (file)
@@ -259,12 +259,12 @@ bool CvCascadeClassifier::updateTrainingSet( double& acceptanceRatio)
 {
     int64 posConsumed = 0, negConsumed = 0;
     imgReader.restart();
-    int posCount = fillPassedSamles( 0, numPos, true, posConsumed );
+    int posCount = fillPassedSamples( 0, numPos, true, posConsumed );
     if( !posCount )
         return false;
     cout << "POS count : consumed   " << posCount << " : " << (int)posConsumed << endl;
 
-    int negCount = fillPassedSamles( numPos, numNeg, false, negConsumed );
+    int negCount = fillPassedSamples( numPos, numNeg, false, negConsumed );
     if ( !negCount )
         return false;
     curNumSamples = posCount + negCount;
@@ -273,7 +273,7 @@ bool CvCascadeClassifier::updateTrainingSet( double& acceptanceRatio)
     return true;
 }
 
-int CvCascadeClassifier::fillPassedSamles( int first, int count, bool isPositive, int64& consumed )
+int CvCascadeClassifier::fillPassedSamples( int first, int count, bool isPositive, int64& consumed )
 {
     int getcount = 0;
     Mat img(cascadeParams.winSize, CV_8UC1);
index 9f0aeb4..b59fdea 100644 (file)
@@ -98,7 +98,7 @@ private:
     void save( const String cascadeDirName, bool baseFormat = false );
     bool load( const String cascadeDirName );
     bool updateTrainingSet( double& acceptanceRatio );
-    int fillPassedSamles( int first, int count, bool isPositive, int64& consumed );
+    int fillPassedSamples( int first, int count, bool isPositive, int64& consumed );
 
     void writeParams( FileStorage &fs ) const;
     void writeStages( FileStorage &fs, const Mat& featureMap ) const;