1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

fixed more compile warnings on Windows

This commit is contained in:
Vadim Pisarevsky
2014-08-04 14:22:31 +04:00
parent 222f8a3d5e
commit cb9b88e65b
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ static void test_and_save_classifier(const Ptr<StatModel>& model,
Mat sample = data.row(i);
float r = model->predict( sample );
r = std::abs(r + rdelta - responses.at<int>(i)) <= FLT_EPSILON ? 1 : 0;
r = std::abs(r + rdelta - responses.at<int>(i)) <= FLT_EPSILON ? 1.f : 0.f;
if( i < ntrain_samples )
train_hr += r;