On the confidence of stereo matching in a deep-learning era: a quantitative evaluation

Matteo Poggi, Seungryong Kim, Fabio Tosi, Sunok Kim, Filippo Aleotti, Dongbo Min, Kwanghoon Sohn, Stefano Mattoccia · DOI

Abstract

Stereo matching is one of the most popular techniques to estimate dense depth maps by finding the disparity between matching pixels on two, synchronized and rectified images. Alongside with the development of more accurate algorithms, the research community focused on finding good strategies to estimate the reliability, i.e. the confidence, of estimated disparity maps. This information proves to be a powerful cue to naively find wrong matches as well as to improve the overall effectiveness of a variety of stereo algorithms according to different strategies. In this paper, we review more than ten years of developments in the field of confidence estimation for stereo matching. We extensively discuss and evaluate existing confidence measures and their variants, from hand-crafted ones to the most recent, state-of-the-art learning based methods. We study the different behaviors of each measure when applied to a pool of different stereo algorithms and, for the first time in literature, when paired with a state-of-the-art deep stereo network. Our experiments, carried out on five different standard datasets, provide a comprehensive overview of the field, highlighting in particular both strengths and limitations of learning-based strategies.

Introduction

Stereo matching—the process of estimating depth by comparing two rectified images—is a cornerstone of computer vision, yet it is rarely perfect. Factors such as occlusions, repetitive textures (e.g., a picket fence), and reflective surfaces frequently lead to "outliers" or incorrect matches. For depth maps to be reliably used in safety-critical applications like autonomous driving or robotics, a confidence measure is essential. This per-pixel score indicates the reliability of the estimated depth, allowing downstream systems to filter out untrustworthy data.

Visualizing stereo matching: (left) reference image, (middle) estimated disparity map, and (right) corresponding confidence map.

While numerous confidence measures have been proposed over the last decade, the field has shifted from hand-crafted geometric heuristics to sophisticated machine learning models. This paper provides a unified evaluation of over 50 measures, assessing their performance across diverse datasets and their compatibility with modern, end-to-end deep stereo networks.

Taxonomy of Confidence Measures

The authors categorize confidence measures into two primary families based on their underlying logic:

  1. Hand-crafted Measures: These rely on geometric or statistical cues derived from the matching process. They typically analyze the cost volume—the set of matching costs for a pixel across all possible disparities—or the final disparity map itself. For instance, they might look for sharp minima in the cost curve or identify noise and holes in the depth map.
  2. Learned Measures:
    • Machine Learning (Random Forests): These methods aggregate multiple hand-crafted features as inputs to a classifier (like a Random Forest) to predict a final confidence score.
  3. Deep Learning (CNNs): These are further divided into Disparity CNNs, which process only the final depth map, and Cost-volume CNNs, which analyze the raw matching data within the cost volume.
Example of a cost curve for a single pixel, showing various disparity candidates used by hand-crafted confidence measures.

The study evaluates these measures against four distinct "backbone" stereo algorithms, ranging from traditional local matching (Census-SGM) to state-of-the-art deep 3D convolutional networks like GANet.

Experimental Setup

To test for robustness and "domain shift," the evaluation utilizes five diverse datasets:

  • SceneFlow Driving: A large-scale synthetic dataset used primarily for training.
  • KITTI 2012 & 2015: Real-world outdoor driving scenes featuring sparse LIDAR ground truth.
  • Middlebury 2014: High-resolution indoor scenes with dense ground truth.
  • ETH3D: Low-resolution grayscale real-world images.

Performance is primarily measured using the Area Under the ROC Curve (AUC), which quantifies how effectively a measure separates correct matches from outliers (where a lower AUC indicates better performance).

Key Insights and Results

The extensive benchmarking revealed several critical findings for the deep learning era:

  • The "Smoothness" Trap: Modern deep networks like GANet produce exceptionally smooth disparity maps. This smoothness effectively "breaks" traditional confidence measures that rely on detecting noise patterns in the depth map. For these advanced networks, analyzing the internal cost volume is mandatory to identify errors.
  • Superior Generalization: Interestingly, confidence measures generalize from synthetic data (SceneFlow) to real-world data (KITTI) more effectively than the stereo matching algorithms themselves. The "language" of errors—represented by cost curves and disparity gradients—remains more consistent across domains than raw RGB pixel values.
  • Cost-Volume Dominance: CNNs that process the full cost volume, such as LAF (Locally Adaptive Fusion) and ACN (Adversarial Confidence Network), emerged as the top performers. By observing the ambiguity in the matching process before a final disparity is selected, they achieve higher robustness.
  • Learned vs. Hand-crafted: On the KITTI dataset, learned measures consistently outperformed hand-crafted ones. For example, on Census-SGM, the best hand-crafted measure achieved an AUC of ~1.97, while LAF reached ~1.44.

Conclusion and Future Directions

While deep learning has significantly advanced confidence estimation, challenges remain. A notable performance gap exists when moving between indoor (Middlebury) and outdoor (KITTI) environments due to differing scene geometries. Furthermore, the highest-performing CNN-based measures are computationally intensive, presenting a trade-off for real-time applications.

Future research is expected to focus on unsupervised confidence estimation, aiming to learn error prediction without the need for expensive, high-fidelity ground-truth depth data. This would allow models to adapt more easily to new, unlabeled environments.

Summary updated

BibTeX
@article{poggi2021confidence,
  author = {Matteo Poggi and Seungryong Kim and Fabio Tosi and Sunok Kim and Filippo Aleotti and Dongbo Min and Kwanghoon Sohn and Stefano Mattoccia},
  title = {{On the confidence of stereo matching in a deep-learning era: a quantitative evaluation}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2021},
  doi = {10.1109/tpami.2021.3069706},
}
Figure