Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calculate the Affine transformation matrix in image Feature based registration

I have two images, one is the result of applying an affine transform to the other. I can register them using homography by extracting the points using the ORB_create function in OpenCV. However, I want to calculate the Affine matrix needed for this transformation. is there any way of doing it simply by having the two images?

re

like image 260
Sara.a Avatar asked Jan 21 '26 09:01

Sara.a


1 Answers

Detect a rotated rectangle and use its corners to get your transformation matrix

Use : getPerspectiveTransform or getAffineTransform

Edit: regarding rotated rectangle detection :

Please check this Opencv tutorial on how to find contours and detect rotated rectangles Creating Bounding rotated boxes and ellipses for contours

like image 96
Ziri Avatar answered Jan 23 '26 19:01

Ziri