Fixed warning
This commit is contained in:
@@ -59,7 +59,7 @@ float calcBlurriness(const Mat &frame)
|
|||||||
double normGx = norm(Gx);
|
double normGx = norm(Gx);
|
||||||
double normGy = norm(Gx);
|
double normGy = norm(Gx);
|
||||||
double sumSq = normGx*normGx + normGy*normGy;
|
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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user