1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-22 07:31:26 +08:00

Fix warnings

This commit is contained in:
Vlad Shakhuro
2015-08-07 15:48:47 +03:00
parent d06d7e2918
commit 81d44b7e22
6 changed files with 17 additions and 18 deletions

View File

@@ -317,7 +317,7 @@ int WaldBoost::predict(Ptr<CvFeatureEvaluator> eval, float *h) const
assert(feature_indices_.size() == size_t(weak_count_));
float res = 0;
for (int i = 0; i < weak_count_; ++i) {
float val = (*eval)(feature_indices_[i], 0);
float val = (*eval)(feature_indices_[i]);
int label = polarities_[i] * (val - thresholds_[i]) > 0 ? +1: -1;
res += alphas_[i] * label;
if (res < THR) {