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,10 +186,9 @@ private:
186 affine(i, j) = paramList[cnt]; 186 affine(i, j) = paramList[cnt];
187 affine(2, 2) = 1; 187 affine(2, 2) = 1;
188 affine = affine.inverse(); 188 affine = affine.inverse();
189 - affine = affine.block(0, 0, 2, 3); 189 + Eigen::MatrixXf affineInv = affine.block(0, 0, 2, 3);
190 Eigen::MatrixXf pointsT = points.transpose(); 190 Eigen::MatrixXf pointsT = points.transpose();
191 - points = affine * pointsT;  
192 - 191 + points = affineInv * pointsT;
193 dst = src; 192 dst = src;
194 dst.file.clearPoints(); 193 dst.file.clearPoints();
195 dst.file.setPoints(matrixToPoints(points.transpose())); 194 dst.file.setPoints(matrixToPoints(points.transpose()));