Calculate homography only with translation, rotation and scale in Opencv

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

+4
source share
2

OpenCV estimateRigidTransform , : Translation, Rotation Scale ( false fullAffine). RANSAC (. , ).

+4

, - ​​ . :

[x, y, w] [x/w, y/w]

, 6DOF 4DOF (), , 4DOF. RANSAC , . - H, ( ). , - , , . , .

, ( RANSAC ). , rigidTransform, () fooobar.com/questions/753785/...

, . . , . 25

+2

Source: https://habr.com/ru/post/1532477/


All Articles