是否可以使用cv2.findHomography计算未知点的坐标?

问题描述

我正在尝试创建图像的自顶向下视图。 目前,我有一些已知的源点和已知的目标点:

src_pts = np.array([(1223,1511),(2238,1090),(1300,1115),(1330,943),(360,1139),(1731,811),(982,831)])
dst_pts = np.array([(636,1982),(1045,1498),(637,1040),(226,102),(225,102)])

我可以使用以下方法变换图像:

h,status = cv2.findHomography(src_pts,dst_pts)
img_out1 = cv2.warpPerspective(img,h,(img_dst.shape[1],img_dst.shape[0]))

问题:

现在我有了一个附加源点的坐标,在该坐标中我不知道目标图像中的坐标。是否可以使用计算出的单应性来计算目标图像中该点的坐标?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...