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

Merge pull request #6253 from berak:patch-1

This commit is contained in:
Alexander Alekhin
2016-03-14 11:27:11 +00:00
+1 -1
View File
@@ -153,7 +153,7 @@ void SVMSGDImpl::normalizeSamples(Mat &samples, Mat &average, float &multiplier)
double normValue = norm(samples);
multiplier = static_cast<float>(sqrt(samples.total()) / normValue);
multiplier = static_cast<float>(sqrt(static_cast<double>(samples.total())) / normValue);
samples *= multiplier;
}