Merge pull request #374 from ivan-korolev:fix_estimateRigidTransform

pull/383/merge
Andrey Kamaev 12 years ago committed by OpenCV Buildbot
commit e0426148ba
  1. 7
      modules/video/src/lkpyramid.cpp

@ -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…
Cancel
Save