CBMV: A Coalesced Bidirectional Matching Volume for Disparity Estimation

Konstantinos Batsos, Changjiang Cai, Philippos Mordohai

Abstract

Recently, there has been a paradigm shift in stereo matching with learning-based methods achieving the best results on all popular benchmarks. The success of these methods is due to the availability of training data with ground truth; training learning-based systems on these datasets has allowed them to surpass the accuracy of conventional approaches based on heuristics and assumptions. Many of these assumptions, however, had been validated extensively and hold for the majority of possible inputs. In this paper, we generate a matching volume leveraging both data with ground truth and conventional wisdom. We accomplish this by coalescing diverse evidence from a bidirectional matching process via random forest classifiers. We show that the resulting matching volume estimation method achieves similar accuracy to purely data-driven alternatives on benchmarks and that it generalizes to unseen data much better. In fact, the results we submitted to the KITTI and ETH3D benchmarks were generated using a classifier trained on the Middlebury 2014 dataset.

Introduction

Stereo matching—the process of calculating depth by comparing two slightly offset images—has recently been dominated by end-to-end deep learning. However, these models face a significant hurdle: generalization. Models trained on specific datasets, such as sunny highway footage (KITTI), often fail when applied to high-resolution indoor scenes (Middlebury) because they over-specialize on image appearances like textures and lighting.

CBMV (Coalesced Bidirectional Matching Volume) addresses this by combining traditional "hand-crafted" matching functions with a Random Forest classifier. By learning from matching costs and confidence scores rather than raw pixels, it achieves state-of-the-art accuracy while maintaining robustness across diverse, unseen environments.

Methodology

The CBMV approach leverages "conventional wisdom" by using four classic matching functions: Normalized Cross-Correlation (NCC), CENSUS transform, Zero-mean Sum of Absolute Differences (ZSAD), and SAD on Sobel-filtered images (SOBEL).

Coalescence via Random Forest

Instead of feeding raw pixels into a network, the system extracts a 20-dimensional feature vector for every potential match (disparity hypothesis). This vector includes raw costs from the four matchers and four confidence metrics for each (left/right ratios and likelihoods).

The CBMV pipeline integrates multiple matching costs into a coalesced volume refined by a post-processing pipeline.

A Random Forest (RF) classifier learns to recognize "good" matches based on the behavior of these costs—specifically, how much the algorithms agree and the distinctness of the best match. This makes the model appearance-invariant, as it focuses on cost relationships rather than pixel intensities.

Bidirectional Evidence

The "Bidirectional" aspect of CBMV involves measuring competition between matches in both left-to-right and right-to-left directions. This provides critical evidence for resolving ambiguity, particularly near object boundaries.

Bidirectional matching volume construction provides evidence from both camera perspectives to resolve depth ambiguities.

Evaluation and Results

The researchers evaluated CBMV on the Middlebury 2014, KITTI 2012/2015, and ETH3D benchmarks. To prove robustness, the model was often trained on one dataset and tested on others without retraining.

Key Results

  • Superior Generalization: In cross-dataset tests, CBMV's error rate increased by only 3-7% when moving from KITTI to Middlebury. In contrast, deep learning models like MC-CNN saw error rates increase by 40-80%.
  • Benchmark Performance: CBMV outperformed all other methods on the ETH3D two-view benchmark at the time of publication.
  • Competitive Accuracy: On the Middlebury 2014 test set, CBMV achieved an average error rate of 11.1%, making it highly competitive with the best deep learning models of the era.

Conclusion

CBMV demonstrates that hand-crafted features provide a stable foundation for generalization. While the current Random Forest inference is a runtime bottleneck (approx. 162 seconds per pair), optimization via ASIC or GPU frameworks could enable real-time performance. Future work will explore combining CBMV’s generalization strengths with the raw power of end-to-end architectures.

Summary updated

Abstract

Recently, there has been a paradigm shift in stereo matching with learning-based methods achieving the best results on all popular benchmarks. The success of these methods is due to the availability of training data with ground truth; training learning-based systems on these datasets has allowed them to surpass the accuracy of conventional approaches based on heuristics and assumptions. Many of these assumptions, however, had been validated extensively and hold for the majority of possible inputs. In this paper, we generate a matching volume leveraging both data with ground truth and conventional wisdom. We accomplish this by coalescing diverse evidence from a bidirectional matching process via random forest classifiers. We show that the resulting matching volume estimation method achieves similar accuracy to purely data-driven alternatives on benchmarks and that it generalizes to unseen data much better. In fact, the results we submitted to the KITTI and ETH3D benchmarks were generated using a classifier trained on the Middlebury 2014 dataset.
BibTeX
@inproceedings{batsos2018cbmv,
  author = {Konstantinos Batsos and Changjiang Cai and Philippos Mordohai},
  title = {{CBMV: A Coalesced Bidirectional Matching Volume for Disparity Estimation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00220},
}
Figure