Commit e0426148 authored by Andrey Kamaev's avatar Andrey Kamaev Committed by OpenCV Buildbot

Merge pull request #374 from ivan-korolev:fix_estimateRigidTransform

parents e72c7736 b362affd
...@@ -1911,8 +1911,11 @@ cv::Mat cv::estimateRigidTransform( InputArray src1, ...@@ -1911,8 +1911,11 @@ cv::Mat cv::estimateRigidTransform( InputArray src1,
{ {
Mat M(2, 3, CV_64F), A = src1.getMat(), B = src2.getMat(); Mat M(2, 3, CV_64F), A = src1.getMat(), B = src2.getMat();
CvMat matA = A, matB = B, matM = M; CvMat matA = A, matB = B, matM = M;
cvEstimateRigidTransform(&matA, &matB, &matM, fullAffine); int err = cvEstimateRigidTransform(&matA, &matB, &matM, fullAffine);
return M; if (err == 1)
return M;
else
return Mat();
} }
/* End of file. */ /* End of file. */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment