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

build: fix MSVS2010

This commit is contained in:
Alexander Alekhin
2017-10-08 23:32:22 +03:00
parent 8ac2c5d620
commit e615fafe2d
2 changed files with 6 additions and 6 deletions
@@ -53,8 +53,8 @@ public:
norm = cv::norm(*inputs[0], NORM_L2);
else
{
pow(abs(*inputs[0]), pnorm, internals[0]);
norm = pow(sum(internals[0])[0], 1.0f / pnorm);
cv::pow(abs(*inputs[0]), pnorm, internals[0]);
norm = pow((float)sum(internals[0])[0], 1.0f / pnorm);
}
multiply(*inputs[0], 1.0f / (norm + epsilon), outputs[0]);
}