A generic implementation framework for stereo matching algorithms

Jasmine Banks, Reid Porter, Mohammed Bennamoun, Peter CorkeScience 1997

Abstract

Traditional area-based matching techniques make use of similarity metrics such as the Sum of Absolute Differences (SAD), Sum of Squared Differences (SSD), and Normalised Cross Correlation (NCC). Non-parametric matching algorithms such as the rank and census rely on the relative ordering of pixel values rather than the pixels themselves as a similarity measure. Both traditional area-based and non-parametric stereo matching techniques have an algorithmic structure which is amenable to fast hardware realisation. This investigation undertakes a performance assessment of these two families of algorithms for robustness to radiometric distortion and random noise. A generic implementation framework is presented for the stereo matching problem and the relative hardware requirements for the various metrics investigated.

Introduction

Stereo vision is the process of estimating depth by finding corresponding points between two images taken from slightly different angles. The "matching" part of this process is often the primary computational bottleneck. This paper evaluates how different stereo matching algorithms—ranging from traditional pixel-math to non-parametric transforms—perform when implemented in real-time hardware. The authors demonstrate that non-parametric methods like the Rank and Census transforms are not only more robust to lighting changes (radiometric distortion) but are also significantly more hardware-efficient than complex traditional metrics like Normalized Cross Correlation (NCC).

Methodology and Similarity Metrics

The paper compares two main families of algorithms:

  1. Area-Based Metrics: These use raw pixel values. They range from simple (SAD, SSD) to complex, "zero-mean" versions (ZSAD, ZSSD, NCC) that subtract the average brightness to handle lighting offsets.
  2. Non-Parametric Transforms: Instead of using pixel values, these look at the relative ordering of pixels within a window.
  3. Rank Transform: Replaces a pixel with an integer representing how many of its neighbors are dimmer than it.
  4. Census Transform: Maps a neighborhood to a bit string (1 if a neighbor is dimmer, 0 otherwise). Matching is then done using a simple Hamming distance.
Common area-based similarity metrics used in stereo matching.

Hardware Framework

The authors propose a generic VHDL-based pipelined architecture. A key innovation is the use of running totals for window summation. Instead of re-summing an entire $11 \times 11$ window for every pixel, the system uses shift registers to add the new row/column and subtract the old one, drastically reducing the number of operations required per pixel.

Evaluation and Key Insights

The primary evaluation uses the J1 stereo pair from the JISCT (JPL Interactive Stereo Analysis Tool) stereo evaluation. This dataset is particularly challenging because the right image is approximately 13% brighter than the left, providing a rigorous test case for radiometric distortion.

Order over Magnitude

A critical insight is that the relative order of pixels is much more stable than their actual intensity. If a pixel is brighter than its neighbor in the left image, it will likely still be brighter in the right image, even if the whole right image is overexposed.

Hardware Efficiency

In hardware, the "cost" of an operation is often tied to the bit-width of the numbers. Traditional SSD might require summing 16-bit numbers. However, after a Rank transform, the system might only be summing 5-bit numbers. This "data compression" makes the subsequent hardware logic much smaller and faster. The authors found that while the actual matching logic (the "point operator") is relatively inexpensive, the window summation is the dominant hardware cost.

Results

The experimental results highlight a clear divide in performance:

  • Robustness: Simple SAD and SSD failed significantly on the J1 dataset due to the 13% brightness difference. In contrast, the Rank and Census transforms (along with ZSAD/ZNCC) produced clean, accurate disparity maps.
  • Area Cost Estimates: NCC was the most expensive at 790,000 units due to complex division and square root operations. The Rank Transform was the cheapest at 200,000 units, followed by the Census Transform at 325,000 units.
Example of a disparity map generated by the stereo matching framework.

The Rank transform followed by SAD emerged as the most efficient robust solution, being nearly 4x smaller in hardware area than the NCC approach while providing similar accuracy.

Conclusion and Future Work

While robust, "zero-mean" versions of traditional metrics require calculating the mean of the entire frame first, which introduces a one-frame latency—a potential drawback for high-speed robotics. Future work could explore how these hardware costs scale with larger windows or multi-resolution approaches. Additionally, while the current framework produces integer disparity, many applications require sub-pixel interpolation, which would add further hardware complexity.

Summary updated

BibTeX
@inproceedings{banks1997generic,
  author = {Jasmine Banks and Reid Porter and Mohammed Bennamoun and Peter Corke},
  title = {{A generic implementation framework for stereo matching algorithms}},
  booktitle = {Science},
  year = {1997},
}
Figure