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()));