Merge pull request #2462 from ibtaylor:fix_deblurring_calcBlurriness_var_name_typo

This commit is contained in:
Roman Donchenko 2014-03-11 17:41:18 +04:00 committed by OpenCV Buildbot
commit 1bb0c5747c

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));
}