Commit 21e22962 authored by Maria Dimashova's avatar Maria Dimashova

fixed grammar error

parent 98763247
......@@ -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);
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment