mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 09:25:45 +08:00
Update aff_trans.cpp
When the fullAffine parameter is set to false, the estimateRigidTransform function maybe return empty, then the _localAffineEstimate function will be called, but the bug in it will result in incorrect results.
This commit is contained in:
parent
6700fdb81f
commit
b47c9ac643
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user