我正在使用2个飞行相机并试图将它们缝合在一起。 我在这里使用OpenCV和C ++。

因为我试图使用两个相机(以及稍后的轮廓检测)覆盖大区域,我想知道是否有一种快速缝合从两个摄像机的图像?

目前这是我正在做的事情:

  1. 用先前存储的背景图像删除每个相机的图像(稍后加速轮廓检测) 使用cvremap函数 un-is-扭曲每个图像
  2. 最后设置用于将它们拼接在一起的图像的ROI。

    我的问题是,是否有可能将其加速更多?由于目前这些步骤大约为60毫秒,并且具有额外的功能,速度降至0.1秒。

    我一直在使用OpenCV的较慢功能吗?或者有任何技巧可以获得更多速度吗?

有帮助吗?

解决方案

Take the latest OpenCV snapshot from here and try the stitching module implemented here. They have been working on stitching performance lately, so it's possible to get some good improvements.

By the way, what step takes the most? Did you profile your app? Take a look at the profile results, and you'll be able to understand exactly where to optimize, and maybe how to do it.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top