Commit faf845d3 authored by Alexey Spizhevoy's avatar Alexey Spizhevoy

Fixed warning

parent 3323ee9d
......@@ -59,7 +59,7 @@ float calcBlurriness(const Mat &frame)
double normGx = norm(Gx);
double normGy = norm(Gx);
double sumSq = normGx*normGx + normGy*normGy;
return 1.f / (sumSq / frame.size().area() + 1e-6f);
return static_cast<float>(1. / (sumSq / frame.size().area() + 1e-6));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment