Best stereo correspondence algorithm in opencv

Richie picture Richie · Nov 10, 2012 · Viewed 16.3k times · Source

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. 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. 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.

Is there any existing code that computes disparities using graph-cut algorithm or belief propagation algorithm in opencv.

Answer

carlosdc picture carlosdc · Nov 10, 2012

I don't think that there is in OpenCV, but you do have alternatives. There is C++ code available, and it wouldn't be hard to make it interact with OpenCV: