How to use estimateRigidTransform in OpenCV 3.0 or higher, Is there any other alternative?
As indicated in the documentation of estimateRigidTransform
, this function has been deprecated:
Deprecatd: Use cv::estimateAffine2D, cv::estimateAffinePartial2D instead. If you are using this fuction with images, extract points using cv::calcOpticalFlowPyrLK and then use the estimation fuctions.
cv::estimateAffine2D
should be more robust to noise, but more computationally expensive than cv::estimateAffinePartial2D
. They are similar to estimateRigidTransform
with the fullAffine
parameter set to true
or false
, respectively.