Learning to Predict Stereo Reliability Enforcing Local Consistency of Confidence Maps

Matteo Poggi, Stefano MattocciaCVPR 2017

Abstract

Stereo matching is a fundamental computer vision task, yet it remains prone to errors in regions with occlusions, reflections, or low texture. While confidence measures aim to quantify the reliability of depth estimates, traditional pixel-wise methods often produce noisy results. This paper proposes a novel framework that leverages a Convolutional Neural Network (CNN) to enforce local consistency in confidence maps. By treating confidence estimation as a spatial pattern recognition problem, the approach significantly boosts the performance of 23 state-of-the-art confidence measures across diverse datasets, demonstrating remarkable generalization from outdoor driving scenes to complex indoor environments.

Introduction

Stereo matching—the process of estimating depth by comparing two images taken from slightly different viewpoints—is a cornerstone of computer vision. However, it often fails in "challenging" areas: occlusions (where one camera cannot see what the other does), reflective surfaces, or regions with very little texture. To mitigate these errors, researchers employ confidence measures. These algorithms assign a score to every pixel in a depth map, indicating the likelihood that the depth value is correct.

Traditionally, these measures were calculated pixel-by-pixel. The limitation of this approach is that pixel-wise estimates are often noisy and unreliable themselves, as they ignore a fundamental property of natural images: local consistency. If a pixel is unreliable, its immediate neighbors are highly likely to be unreliable as well. This paper introduces the first method to move beyond pixel-wise estimation by using a CNN to analyze local patches of confidence maps.

Methodology

The core innovation of this work is the "Measure+" framework, which treats an existing confidence map as an image containing informative spatial patterns rather than a collection of independent points.

The Measure+ Framework

The authors take a standard confidence measure ($k$) and pass its output through a specialized CNN to produce a refined version ($k^+$). Before processing, confidence maps are normalized to a $[0, 1]$ range to ensure the network learns general spatial patterns rather than absolute values.

CNN Architecture and Patch-Based Learning

Instead of evaluating a single pixel, the CNN analyzes an $N \times N$ patch (specifically $9 \times 9$) centered on the pixel. The network is designed to recognize patterns in these patches that signal high or low reliability. The architecture consists of several convolutional layers using $3 \times 3$ kernels. Crucially, the authors avoided pooling layers to maintain the full resolution of the input, ensuring the final output map matches the size of the input.

The CNN architecture processes $9 \times 9$ patches to enforce local consistency without using pooling layers.

Experimental Results

The researchers demonstrated impressive results using a minimal training set of only 25 frames from the KITTI 2012 dataset. Evaluation was conducted on the remaining KITTI 2012 frames, the KITTI 2015 dataset, and the Middlebury 2014 dataset, using depth maps produced by both classic (AD-CENSUS) and modern deep-learning (MC-CNN) stereo algorithms.

Performance Gains

Performance was measured using the Area Under Curve (AUC) of ROC curves, where a lower AUC represents a more optimal sorting of correct versus incorrect pixels. The refined $k^+$ measures showed dramatic improvements across the board:

  • Universal Improvement: The framework improved every single one of the 23 measures tested.
  • Significant Refinement: On the KITTI 12 dataset, the "CUR" measure saw a 72.25% improvement toward the theoretical optimal limit.
  • Qualitative Impact: As shown in the motorcycle scene below, the refined confidence map (d) is significantly less noisy and more structurally consistent than the raw pixel-wise estimate (c).
Qualitative comparison: (a) RGB image, (b) disparity map, (c) raw pixel-wise confidence, and (d) refined confidence using the proposed framework.

Discussion and Conclusion

A key insight of this research is that confidence estimation is inherently a spatial problem. By analyzing the neighborhood of a pixel, the CNN can "smooth out" noise and better identify structural failures like occlusion boundaries. Furthermore, the network demonstrated exceptional generalization power; despite being trained on outdoor driving data, it performed remarkably well on complex indoor scenes without re-training. This suggests the network learns fundamental geometric properties of depth errors.

While the method is currently a refiner dependent on an initial input measure, its efficiency—processing a full-resolution map in approximately 0.1 seconds on a Titan X GPU—makes it a viable "universal booster" for real-time stereo vision systems. Future work may explore multi-scale patches to capture even more complex error patterns across different spatial frequencies.

Summary updated

BibTeX
@inproceedings{poggi2017learning,
  author = {Matteo Poggi and Stefano Mattoccia},
  title = {{Learning to Predict Stereo Reliability Enforcing Local Consistency of Confidence Maps}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  doi = {10.1109/cvpr.2017.483},
}
Figure