简体   繁体   English

opencv中最好的立体声对应算法

[英]Best stereo correspondence algorithm in opencv

Well, I have got a stereo setup where it computes the disparity of stereo image pairs using SGBM(Semi-global block matching), BM(Block matching) and Variational matching algorithm using the OpenCV library. 好吧,我有一个立体声设置,它使用SGBM(半全局块匹配),BM(块匹配)和使用OpenCV库的变分匹配算法计​​算立体图像对的差异。 But the disparities are not so good as that of the ground truth disparities. 但是,差异并不像地面实际差距那么大。

All I wanted to know is, whether opencv provides any function or a program that could compute the ground truth disparity. 我想知道的是,opencv是否提供任何能够计算地面实况差异的函数或程序。 As per some papers like "A Taxonomy and Evaluation of Dense Two-Frame Stereo Correspondence Algorithms" by Daniel Scharstein and Richard Szeliski says that Belief Propagation algorithm is the best stereo correspondence algorithm. 根据Daniel Scharstein和Richard Szeliski的“分类和评估密集双帧立体声对应算法”等论文,相信传播算法是最好的立体对应算法。

Is there any existing code that computes disparities using graph-cut algorithm or belief propagation algorithm in opencv. 是否存在使用opencv中的图切算法或置信传播算法计算差异的现有代码。

I don't think that there is in OpenCV, but you do have alternatives. 我认为OpenCV中没有,但你确实有其他选择。 There is C++ code available, and it wouldn't be hard to make it interact with OpenCV: 有C ++代码可用,并且要与OpenCV进行交互并不困难:

I think Semi Global Block Matching algorithm by Hirshmuller is one of the best stereo correspondence algorithm. 我认为Hirshmuller的半全局块匹配算法是最好的立体对应算法之一。

This algorithm is provided in OpenCV library. 该算法在OpenCV库中提供。

The OpenCV implementation of belief propagation is only offered for GPU ( CUDA and OpenCL ), not for CPU implementations. 信任传播的OpenCV实现仅适用于GPU( CUDAOpenCL ),而不适用于CPU实现。 They also have the constant space variant of believe prop. 他们也有相信道具的恒定空间变体。

The Middlebury website keeps an updated state of the art on these algorithms, so keep an eye for new entries. Middlebury网站保留了这些算法的最新技术,因此请密切关注新条目。

yeah, TSGO is not open sourced, and its article("Accurate Stereo Matching by Two-Step Energy Minimization") is not free either. 是的,TSGO不是开源的,它的文章(“通过两步能量最小化精确立体匹配”)也不是免费的。 Has anyone evaluated it? 有人评价过吗?

There is an opencv implementation for GraphCut one and seems quite good, it deserves a try. 有一个针对GraphCut的opencv实现,看起来相当不错,值得一试。 http://daily-tech.hatenablog.com/entry/2016/06/25/233203 http://daily-tech.hatenablog.com/entry/2016/06/25/233203

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM