Commit 31f14f92e889df009d631ddad3c2fb9bee07a60f

Authored by Brendan Klare
1 parent f3967c73

Fixes a stupid effing bug that only occured on linux not osx.

Showing 1 changed file with 2 additions and 3 deletions
openbr/plugins/stasm4.cpp
... ... @@ -186,10 +186,9 @@ private:
186 186 affine(i, j) = paramList[cnt];
187 187 affine(2, 2) = 1;
188 188 affine = affine.inverse();
189   - affine = affine.block(0, 0, 2, 3);
  189 + Eigen::MatrixXf affineInv = affine.block(0, 0, 2, 3);
190 190 Eigen::MatrixXf pointsT = points.transpose();
191   - points = affine * pointsT;
192   -
  191 + points = affineInv * pointsT;
193 192 dst = src;
194 193 dst.file.clearPoints();
195 194 dst.file.setPoints(matrixToPoints(points.transpose()));
... ...