Calculate the Affine transformation matrix in image Feature based registration

孤街醉人 提交于 2021-01-27 20:01:24

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/59485056/calculate-the-affine-transformation-matrix-in-image-feature-based-registration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!