Libmv: Correction to previous commit
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 7 Apr 2017 15:57:48 +0000 (17:57 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 7 Apr 2017 15:57:48 +0000 (17:57 +0200)
We do need to make a copy of the values.

intern/libmv/libmv/multiview/homography.cc

index a7679c33bbf24c10d511b3d35f09c3bd4dfe30db..69177743f94885861c8aff9691142735dd1500b2 100644 (file)
@@ -209,8 +209,10 @@ class HomographySymmetricGeometricCostFunctor {
     return true;
   }
 
-  const Vec2 &x_;
-  const Vec2 &y_;
+  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
+
+  const Vec2 x_;
+  const Vec2 y_;
 };
 
 // Termination checking callback used for homography estimation.