From ece77e39301c38ed538fff36dae5b1e70f81e0cc Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Wed, 10 Oct 2012 16:07:07 +0400 Subject: [PATCH] fixed cvtColor parameter in KeypointBasedMotionEstimatorGpu::estimate --- modules/videostab/src/global_motion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/videostab/src/global_motion.cpp b/modules/videostab/src/global_motion.cpp index cc4b2a2811..fa05f37377 100644 --- a/modules/videostab/src/global_motion.cpp +++ b/modules/videostab/src/global_motion.cpp @@ -756,7 +756,7 @@ Mat KeypointBasedMotionEstimatorGpu::estimate(const gpu::GpuMat &frame0, const g grayFrame0 = frame0; else { - gpu::cvtColor(frame0_, grayFrame0_, CV_BGR2GRAY); + gpu::cvtColor(frame0, grayFrame0_, CV_BGR2GRAY); grayFrame0 = grayFrame0_; }