Stereo Vision in Structured Environments by Consistent Semi-Global Matching

Heiko HirschmüllerCVPR 2006

Abstract: This paper presents refinements to the Semi-Global Matching (SGM) algorithm to improve performance in structured indoor environments. By incorporating intensity-based segmentation and a novel interpolation strategy, the proposed Consistent Semi-Global Matching (CSGM) handles untextured surfaces and sharp depth discontinuities effectively, achieving high accuracy with minimal computational overhead.

Introduction

Stereo vision—calculating depth from two slightly offset images—faces significant challenges in "structured" environments like offices or kitchens. These scenes typically contain large, untextured areas (e.g., white walls) where traditional matching costs are ambiguous, and sharp discontinuities (e.g., furniture edges) that are easily blurred by local matching windows. While global optimization methods like Graph Cuts offer high accuracy, their computational cost is often prohibitive for real-time applications. SGM provides a middle ground by approximating global optimization through multiple 1D path constraints.

The Semi-Global Matching Framework

The core of SGM is the aggregation of matching costs along several 1D paths through the image. Instead of a full 2D global optimization, SGM minimizes an energy function by summing independent path optimizations from various directions (typically 8 or 16) toward each pixel. This approach is significantly faster than global methods while providing much better results than local methods.

Semi-Global Matching approximates global optimization by aggregating costs along multiple 1D paths.

Consistent Semi-Global Matching (CSGM)

To address the limitations of SGM in structured scenes, specifically the "bleeding" of foreground objects into untextured backgrounds, the author proposes two key extensions:

1. Intensity Consistent Disparity Selection

This method uses the assumption that regions of similar intensity likely belong to the same physical surface. The algorithm performs Mean Shift segmentation on the reference image to find regions of similar color. Within each segment, it fits several planar hypotheses to the initial disparity data. By selecting the plane that minimizes a global energy function for the entire segment, the algorithm prevents foreground disparities from incorrectly extending into untextured background regions.

2. Discontinuity Preserving Interpolation

Standard interpolation often blurs sharp depth edges when filling "holes" (invalid disparities). CSGM distinguishes between holes caused by occlusions (areas visible to only one camera) and those caused by mismatches. For occlusions, it pulls depth only from the background (the lower disparity), ensuring foreground objects stay sharp. For mismatches, a median filter is used to maintain local consistency.

Evaluation and Results

The CSGM algorithm was evaluated using the Middlebury Stereo Benchmark and custom real-world datasets. On the Middlebury benchmark, it ranked 5.9th overall out of over 22 algorithms, performing particularly well on the complex "Cones" dataset where it was the 2nd best.

Disparity map generation for a real-world office scene using the proposed CSGM method.

In qualitative tests on indoor scenes like offices and kitchens, CSGM significantly reduced the "fuzzy" borders around objects common in standard SGM. Computationally, the method remains highly efficient, processing standard image pairs in 1–2 seconds on a 2.8GHz PC. The proposed extensions only added about 30-50% overhead to the base SGM runtime, keeping it orders of magnitude faster than iterative global methods.

Conclusion

Consistent Semi-Global Matching effectively bridges the gap between fast local methods and accurate global optimizations for structured environments. By leveraging intensity-based priors and smart interpolation, it achieves sharp, reliable depth maps suitable for 3D reconstruction in complex indoor settings while maintaining near real-time performance.

Summary updated

BibTeX
@inproceedings{hirschmuller2006stereo,
  author = {Heiko Hirschmüller},
  title = {{Stereo Vision in Structured Environments by Consistent Semi-Global Matching}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2006},
  doi = {10.1109/cvpr.2006.294},
}
Figure