1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

fixed many warnings (modified pull request 13)

This commit is contained in:
Vadim Pisarevsky
2012-08-28 18:15:14 +04:00
parent aa2524f41e
commit 633a8bfacc
13 changed files with 82 additions and 72 deletions
+1 -1
View File
@@ -269,7 +269,7 @@ namespace
if (updateBackgroundModel_)
{
for (int i = 0; i < nfeatures; ++i)
weights[i] *= 1.0f - learningRate_;
weights[i] *= (float)(1.0f - learningRate_);
bool inserted = insertFeature(newFeatureColor, (float)learningRate_, colors, weights, nfeatures, maxFeatures_);