From 2799f51bf968d8778131f0e50e2f861172060398 Mon Sep 17 00:00:00 2001 From: Alexey Spizhevoy Date: Thu, 26 Apr 2012 11:56:30 +0000 Subject: [PATCH] Minor changes in videostab module --- modules/videostab/src/global_motion.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/videostab/src/global_motion.cpp b/modules/videostab/src/global_motion.cpp index 3fc4c2b..a835943 100644 --- a/modules/videostab/src/global_motion.cpp +++ b/modules/videostab/src/global_motion.cpp @@ -460,9 +460,6 @@ Mat MotionEstimatorL1::estimate(InputArray points0, InputArray points1, bool *ok const int npoints = points0.getMat().checkVector(2); CV_Assert(points1.getMat().checkVector(2) == npoints); - const Point2f *points0_ = points0.getMat().ptr(); - const Point2f *points1_ = points1.getMat().ptr(); - #ifndef HAVE_CLP CV_Error(CV_StsError, "The library is built without Clp support"); @@ -475,6 +472,9 @@ Mat MotionEstimatorL1::estimate(InputArray points0, InputArray points1, bool *ok // prepare LP problem + const Point2f *points0_ = points0.getMat().ptr(); + const Point2f *points1_ = points1.getMat().ptr(); + int ncols = 6 + 2*npoints; int nrows = 4*npoints; -- 2.7.4