两个图像之间的转换(旋转和平移)

5

我有这2张图片:

enter image description here

并且

enter image description here

我想计算两个物体之间的旋转和平移(长竖形物体是噪声)。我该如何做?我尝试使用estimateRigidTransform,得到了一个3x2矩阵,如下所示:
[[ 9.74271490e-01 -5.10741683e-02 2.52325933e+01] [ 1.05148056e-02 1.01445292e+00 -8.42995582e+00]]
我认为这个矩阵是这样的:
[[ cos(angle) sin(angle) tranlation_X] [-sin(angle) cos(angle) translation_Y]]
但是9.74271490e-01与1.01445292e+00不同,这意味着什么?
estimateRigidTransform是最好(唯一)的解决方案吗?
此致敬礼,
Philippe

1
你可以使用 findHomography 函数来找到两个平面之间的透视变换。 - VICTOR
使用 findHomography 函数时,需要两个点数组,但我只有两张图片。对于 getAffineTransformgetPerspectiveTransform 函数也是一样的。 - Philippe Juhel
在OpenCV中使用检测器和描述符进行findHomography - Rick M.
1个回答

0

尝试使用迭代最近点(ICP)。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接