I have two sets of points, and I want to find the best transformation between them. In OpenCV, you have the following function:
Mat H = Calib3d.findHomography(src_points, dest_points);
which returns you a 3x3 homography matrix using RANSAC. My problem is that I only need translation and rotation (and, possibly, scale), I do not need affine and promising ones.
The fact is that my glasses are only in 2D.
(1) Is there a function for computing something like homography, but with less degrees of freedom?
(2) If it is not, is it possible to extract a 3x3 matrix that performs only translation and rotation from a 3x3 homography matrix?
Thanks in advance for your help!
Isa
source
share