我有这2张图片:
并且
我想计算两个物体之间的旋转和平移(长竖形物体是噪声)。我该如何做?我尝试使用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
findHomography
函数来找到两个平面之间的透视变换。 - VICTORfindHomography
函数时,需要两个点数组,但我只有两张图片。对于getAffineTransform
和getPerspectiveTransform
函数也是一样的。 - Philippe JuhelfindHomography
。 - Rick M.