fixed cvtColor parameter in KeypointBasedMotionEstimatorGpu::estimate
authorVladislav Vinogradov <vlad.vinogradov@itseez.com>
Wed, 10 Oct 2012 12:07:07 +0000 (16:07 +0400)
committerVladislav Vinogradov <vlad.vinogradov@itseez.com>
Wed, 10 Oct 2012 12:07:07 +0000 (16:07 +0400)
modules/videostab/src/global_motion.cpp

index cc4b2a2..fa05f37 100644 (file)
@@ -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_;
     }