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

fix variable name typo in calcBlurriness

This commit is contained in:
Ian Taylor
2014-03-10 03:02:06 -04:00
parent 229aa62300
commit 45969bb3ae
+1 -1
View File
@@ -57,7 +57,7 @@ float calcBlurriness(const Mat &frame)
Sobel(frame, Gx, CV_32F, 1, 0);
Sobel(frame, Gy, CV_32F, 0, 1);
double normGx = norm(Gx);
double normGy = norm(Gx);
double normGy = norm(Gy);
double sumSq = normGx*normGx + normGy*normGy;
return static_cast<float>(1. / (sumSq / frame.size().area() + 1e-6));
}