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:
@@ -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_);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user