From 3f572fe7d25032a37770e71bda20eb6c4cd23a8b Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 6 Mar 2015 14:58:16 +0500 Subject: Fix T43905: Crash happens when press Create Plane Track It was only happening on 32bit platforms because of alignment differences when allocating class. Now got rid of copy of eigen matricies stored by value in the residual block which solves aligment issues and should also give some unmeasurable speedup. --- extern/libmv/libmv/multiview/homography.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extern/libmv') diff --git a/extern/libmv/libmv/multiview/homography.cc b/extern/libmv/libmv/multiview/homography.cc index ce533a3ead2..a7679c33bbf 100644 --- a/extern/libmv/libmv/multiview/homography.cc +++ b/extern/libmv/libmv/multiview/homography.cc @@ -209,8 +209,8 @@ class HomographySymmetricGeometricCostFunctor { return true; } - const Vec2 x_; - const Vec2 y_; + const Vec2 &x_; + const Vec2 &y_; }; // Termination checking callback used for homography estimation. -- cgit v1.2.3