fixed multiple warnings from VS2010.

This commit is contained in:
Vadim Pisarevsky
2010-11-25 16:55:46 +00:00
parent 7e5c11a920
commit 1286c1db45
36 changed files with 178 additions and 177 deletions

View File

@@ -831,10 +831,10 @@ void FernClassifier::prepare(int _nclasses, int _patchSize, int _signatureSize,
static int calcNumPoints( const vector<vector<Point2f> >& points )
{
int count = 0;
size_t count = 0;
for( size_t i = 0; i < points.size(); i++ )
count += points[i].size();
return count;
return (int)count;
}
void FernClassifier::train(const vector<vector<Point2f> >& points,