1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-21 06:11:09 +08:00

fixed warnings

This commit is contained in:
Ilya Lavrenov
2014-06-16 18:38:03 +04:00
parent 079ff5c06d
commit ae5c87eafa
30 changed files with 194 additions and 181 deletions

View File

@@ -287,7 +287,7 @@ void BaseClassifier::trainClassifier( const Mat& image, int target, float import
double A = 1;
int K = 0;
int K_max = 10;
while ( 1 )
for ( ; ; )
{
double U_k = (double) rand() / RAND_MAX;
A *= U_k;
@@ -572,7 +572,7 @@ void Detector::prepareDetectionsMemory( int numDetections )
void Detector::classifySmooth( const std::vector<Mat>& images, float minMargin )
{
int numPatches = images.size();
int numPatches = static_cast<int>(images.size());
prepareConfidencesMemory( numPatches );