diff --git a/modules/shape/src/aff_trans.cpp b/modules/shape/src/aff_trans.cpp index 3316f0f41f..a4490f474f 100644 --- a/modules/shape/src/aff_trans.cpp +++ b/modules/shape/src/aff_trans.cpp @@ -165,8 +165,8 @@ static Mat _localAffineEstimate(const std::vector<Point2f>& shape1, const std::v } else { - therow.at<float>(0,0)=-shape1[contPt].y; - therow.at<float>(0,1)=shape1[contPt].x; + therow.at<float>(0,0)=shape1[contPt].y; + therow.at<float>(0,1)=-shape1[contPt].x; therow.at<float>(0,3)=1; therow.row(0).copyTo(matM.row(ii)); matP.at<float>(ii,0) = shape2[contPt].y;