计算图像特征配准中的仿射变换矩阵 [英] Calculate the Affine transformation matrix in image Feature based registration

查看:92
本文介绍了计算图像特征配准中的仿射变换矩阵的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两张图片,一张是对另一张应用仿射变换的结果.我可以通过使用 OpenCV 中的 ORB_create 函数提取点来使用单应性注册它们.但是,我想计算此转换所需的仿射矩阵.有没有什么办法可以简单地通过两张图片来做到这一点?

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?

推荐答案

检测一个旋转的矩形并使用它的角来得到你的变换矩阵

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

使用:getPerspectiveTransformgetAffineTransform

关于旋转矩形检测:

请查看此 Opencv 教程,了解如何查找轮廓和检测旋转矩形 为轮廓创建边界旋转框和椭圆

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

这篇关于计算图像特征配准中的仿射变换矩阵的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆