From 45969bb3ae6065bc152c62e19c420ada8f6b4315 Mon Sep 17 00:00:00 2001 From: Ian Taylor Date: Mon, 10 Mar 2014 03:02:06 -0400 Subject: [PATCH] fix variable name typo in calcBlurriness --- modules/videostab/src/deblurring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/videostab/src/deblurring.cpp b/modules/videostab/src/deblurring.cpp index 813e908be5..be9fd5c0f7 100644 --- a/modules/videostab/src/deblurring.cpp +++ b/modules/videostab/src/deblurring.cpp @@ -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(1. / (sumSq / frame.size().area() + 1e-6)); }