mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 05:06:29 +08:00
Fixed bug in the cv::estimateRigidTransform (#1949)
This commit is contained in:
parent
3a55fb9d1b
commit
b362affd13
@ -1911,8 +1911,11 @@ cv::Mat cv::estimateRigidTransform( InputArray src1,
|
||||
{
|
||||
Mat M(2, 3, CV_64F), A = src1.getMat(), B = src2.getMat();
|
||||
CvMat matA = A, matB = B, matM = M;
|
||||
cvEstimateRigidTransform(&matA, &matB, &matM, fullAffine);
|
||||
return M;
|
||||
int err = cvEstimateRigidTransform(&matA, &matB, &matM, fullAffine);
|
||||
if (err == 1)
|
||||
return M;
|
||||
else
|
||||
return Mat();
|
||||
}
|
||||
|
||||
/* End of file. */
|
||||
|
Loading…
Reference in New Issue
Block a user