From 31f14f92e889df009d631ddad3c2fb9bee07a60f Mon Sep 17 00:00:00 2001 From: Brendan Klare Date: Sat, 26 Jul 2014 21:11:02 -0400 Subject: [PATCH] Fixes a stupid effing bug that only occured on linux not osx. --- openbr/plugins/stasm4.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/openbr/plugins/stasm4.cpp b/openbr/plugins/stasm4.cpp index feb44f5..2c2139c 100644 --- a/openbr/plugins/stasm4.cpp +++ b/openbr/plugins/stasm4.cpp @@ -186,10 +186,9 @@ private: affine(i, j) = paramList[cnt]; affine(2, 2) = 1; affine = affine.inverse(); - affine = affine.block(0, 0, 2, 3); + Eigen::MatrixXf affineInv = affine.block(0, 0, 2, 3); Eigen::MatrixXf pointsT = points.transpose(); - points = affine * pointsT; - + points = affineInv * pointsT; dst = src; dst.file.clearPoints(); dst.file.setPoints(matrixToPoints(points.transpose())); -- libgit2 0.21.4