AN IMPROVED ENERGY SEGMENTATION BASED STEREO MATCHING ALGORITHM

Jiang Xiao, Le Yang, Jie Zhou, Li He, Bobo Li, Liantao DingISPRS 2022

Abstract

The stereo matching algorithm is commonly used in dealing with disparity discontinuous areas. However, the algorithm may have higher computational complexity and lack of well-aligned input images. To improve that, this paper presents an improved energy segmentation based stereo matching algorithm. The proposed algorithm incorporates gradient information of each segmented region into the energy function according to the facts that gradients inside the same segmentation should be closer than those from different segmentation. The invalid matching pixels are interpolated with vertical-horizontal nearest neighboring pixels to keep the consistency of stereo image pairs in the initial disparity map. Thus, the proposed method can reduce the deviations and the number of executions of the Random Sample Consensus (RANSAC) which arises from misalignment of input image pairs. Experiments results demonstrate that the proposed algorithm has a better disparity result while the running time is decreased by about 20%.

Introduction

Stereo matching—the process of calculating depth by comparing two slightly offset images—is a cornerstone of robotic vision and autonomous driving. However, traditional algorithms often struggle with "disparity discontinuous areas," which are essentially the sharp edges of objects where depth changes abruptly.

Existing global methods like Slanted Plane Smoothing (SPS) are effective at handling these areas but suffer from two major drawbacks: high computational complexity, making them slow for real-time applications, and sensitivity to misalignment. If input images are not perfectly aligned row-by-row, initial disparity maps develop artifacts or "mismatch squares" that degrade the final depth estimation. This research introduces an improved energy segmentation-based model designed to be faster, more robust to misalignment, and better at preserving fine details like poles and vehicle contours.

Proposed Methodology

The proposed algorithm enhances the standard SPS pipeline through three primary technical improvements:

  1. Gradient-Enhanced Energy Function: Traditional segmentation relies heavily on color and position. This method introduces a gradient energy term ($E_{gra}$) using Roberts operators. Since pixels within the same object typically share similar intensity gradients, this term helps the algorithm lock onto true object boundaries that color information alone might miss.
  2. Smart Interpolation for Alignment: To address artifacts caused by poorly aligned input images, the authors implemented a vertical-horizontal nearest neighbor interpolation. This step cleans the initial disparity map before the plane-fitting stage, preventing error propagation.
  3. Computational Optimization: The most intensive part of the SPS process is fitting planes to segments using RANSAC. By improving input quality via interpolation, the authors reduced RANSAC to a single execution per segment. Additionally, an iteration termination function stops the final smoothing process once error reduction hits a point of diminishing returns (threshold $\epsilon = 0.01$).
The proposed algorithm pipeline, illustrating the integration of gradient-based segmentation and smart interpolation.

Experimental Results

The algorithm was evaluated using industry-standard benchmarks, including KITTI 2012, KITTI 2015, and the Middlebury dataset.

Performance and Speed

The proposed method achieved a significant speedup, decreasing running time by approximately 20% compared to the original SPS algorithm. On the KITTI datasets, processing time was reduced from roughly 7 seconds to 5.7 seconds. In terms of accuracy, the "bad2.0" error rate on the Middlebury dataset was reduced by approximately 0.5% across various test pairs.

Qualitative Improvements

Visual analysis confirms that the new method successfully removes "black holes" near thin structures, such as telegraph poles, and prevents artifacts on flat surfaces like car hoods. By using gradients as a boundary anchor, the algorithm avoids "bleeding" depth information across object edges, resulting in sharper, more accurate contours.

Qualitative comparison of disparity maps. The red box highlights the improved handling of thin structures like poles, reducing artifacts and "black holes."

Conclusion

By integrating gradient information into the energy function and optimizing the RANSAC execution through pre-processing interpolation, this research provides a more efficient and robust stereo matching solution. While deep learning methods currently hold a slight edge in pure accuracy (e.g., 4.28% error for MC-CNN vs. 4.56% for this method on KITTI 2012), the proposed algorithm is significantly faster and requires far less memory and training data. Future work will focus on narrowing this accuracy gap and improving performance in low-texture regions.

Summary updated

BibTeX
@inproceedings{xiao2022improved,
  author = {Jiang Xiao and Le Yang and Jie Zhou and Li He and Bobo Li and Liantao Ding},
  title = {{AN IMPROVED ENERGY SEGMENTATION BASED STEREO MATCHING ALGORITHM}},
  booktitle = {ISPRS},
  year = {2022},
  doi = {10.5194/isprs-annals-v-1-2022-93-2022},
}
Figure