Binary Stereo Matching

Kang Zhang, Jiyang Li, Yijing Li, WeiDong Hu, Lifeng Sun, Shiqiang Yang

Abstract

Stereo matching is a fundamental task in computer vision, yet it remains challenging due to radiometric variations and high computational demands. This paper introduces Binary Stereo Matching (BSM), a novel local algorithm that leverages bitwise XOR and AND operations on binary descriptors. BSM achieves state-of-the-art accuracy while maintaining significant robustness to exposure changes and high efficiency on hardware lacking floating-point units.

Introduction

Estimating depth from image pairs, or stereo matching, typically involves finding pixel correspondences to generate a disparity map. Traditional high-performance algorithms often rely on absolute pixel intensity differences, which are susceptible to radiometric differences—such as varying exposure or lighting—and require significant computational resources. Furthermore, local matching methods frequently suffer from "edge-fattening," where depth boundaries are blurred. BSM addresses these issues by reimagining the stereo pipeline through binary logic.

The BSM Algorithm

The BSM approach modifies the standard stereo pipeline by focusing on binary cost computation and a novel aggregation strategy.

Binary Cost Computation

Instead of raw intensities, BSM utilizes the BRIEF descriptor. For each pixel, a bitstring is generated based on relative intensity comparisons between neighboring pixel pairs. Matching is then performed using a bitwise XOR operation to calculate the Hamming distance, a process that is highly efficient on modern CPUs.

Cost Aggregation with Binary Masking

To mitigate the edge-fattening problem, the authors introduce a binary mask $\Phi(x)$. This mask identifies pairs within the BRIEF descriptor likely to share the same depth based on color similarity in the CIELAB space. By applying this mask via a bitwise AND operation during aggregation, the algorithm effectively filters out noisy neighbors that would otherwise degrade depth boundaries.

Experimental Results

The performance of BSM was evaluated using the Middlebury Stereo Benchmark and specialized radiometric difference datasets.

Qualitative comparison of disparity maps on the Middlebury dataset: (a) original image, (b) BSM result, (c) CostFilter result, (d) ground truth.

Accuracy and Efficiency

On the Middlebury benchmark, BSM achieved an average error rate of 5.42%, outperforming established local methods like CostFilter (5.55%). In terms of speed, BSM proved to be nearly twice as fast as the P-LinearS method on the "Teddy" dataset, demonstrating its suitability for embedded systems.

Robustness to Radiometric Changes

A key advantage of BSM is its invariance to global brightness shifts. Because BRIEF descriptors rely on relative comparisons, the method maintains stable performance even as exposure levels diverge between the left and right images.

Quantitative robustness analysis showing error rates in unoccluded areas under varying exposure (a) and lighting (b) conditions.

As shown in the figures above, BSM (red line) maintains a much flatter error profile compared to the intensity-based CostFilter (blue dashed line) when subjected to different exposure and lighting combinations.

Conclusion

Binary Stereo Matching offers a compelling alternative to traditional intensity-based stereo algorithms. By shifting to bitwise operations, it achieves a rare combination of speed, accuracy, and radiometric robustness. While challenges remain regarding shifting light source positions, BSM provides a robust foundation for real-time depth estimation in mobile robotics and augmented reality applications.

Summary updated

BibTeX
@inproceedings{zhang2012binary,
  author = {Kang Zhang and Jiyang Li and Yijing Li and WeiDong Hu and Lifeng Sun and Shiqiang Yang},
  title = {{Binary Stereo Matching}},
  booktitle = {ICPR},
  year = {2012},
}
Figure