Temporally Consistent Stereo Matching

Jiaxi Zeng, Chengtang Yao, Yuwei Wu, Yunde Jia

Abstract

Stereo matching provides depth estimation from binocular images for downstream applications. These applications mostly take video streams as input and require temporally consistent depth maps. However, existing methods mainly focus on the estimation at the single-frame level. This commonly leads to temporally inconsistent results, especially in ill-posed regions. In this paper, we aim to leverage temporal information to improve the temporal consistency, accuracy, and efficiency of stereo matching. To achieve this, we formulate video stereo matching as a process of temporal disparity completion followed by continuous iterative refinements. Specifically, we first project the disparity of the previous timestamp to the current viewpoint, obtaining a semi-dense disparity map. Then, we complete this map through a disparity completion module to obtain a well-initialized disparity map. The state features from the current completion module and from the past refinement are fused together, providing a temporally coherent state for subsequent refinement. Based on this coherent state, we introduce a dual-space refinement module to iteratively refine the initialized result in both disparity and disparity gradient spaces, improving estimations in ill-posed regions. Extensive experiments demonstrate that our method effectively alleviates temporal inconsistency while enhancing both accuracy and efficiency.

Introduction

Stereo matching—estimating depth by finding correspondences between left and right camera images—is a cornerstone of autonomous driving, robotics, and AR/VR. While many deep learning models excel at single-frame estimation, they often struggle with temporal inconsistency when applied to video. In a video stream, depth predictions can "jitter" or flicker between frames, especially in "ill-posed" regions like occlusions, reflective surfaces, or low-texture areas. This happens because most models start from scratch for every frame, lacking a "memory" of the scene to maintain stability.

Methodology: A Recurrent Approach

The authors propose TC-Stereo, a pipeline that moves away from independent frame processing toward a recurrent, time-aware approach.

The TC-Stereo framework processes video sequences by leveraging temporal disparity completion and state fusion to maintain consistency across frames.

The framework consists of three key components:

  1. Temporal Disparity Completion (TDC): Instead of starting with a blank slate, the model projects the disparity map from the previous timestamp onto the current viewpoint using camera poses. A lightweight encoder-decoder module completes the resulting "holes" to provide a high-quality initial guess.
  2. Temporal State Fusion: The model uses a GRU-like (Gated Recurrent Unit) module to fuse the "hidden state" (internal features) from the previous frame's refinement with the current frame's features, ensuring a coherent temporal memory.
  3. Dual-Space Refinement: This module refines results in both Disparity Space (depth values) and Disparity Gradient Space (surface slopes). Since surface gradients are often more stable in tricky areas, refining them helps propagate better depth values globally.

Performance and Efficiency

TC-Stereo achieves state-of-the-art accuracy, currently ranking 2nd on the KITTI 2015 leaderboard with a D1-all error of 1.46%, outperforming established models like IGEV-Stereo.

Comparison of TC-Stereo against RAFT-Stereo. (a) Qualitative results showing improved stability. (b) Quantitative jitter reduction ($|\Delta d|$). (c) Faster convergence with fewer iterations.

Key Insights

  • Local vs. Global Search: By initializing with the previous frame’s data, the model performs a "local" search. This significantly reduces the update step size needed during refinement, which naturally suppresses jitter and speeds up convergence.
  • Efficiency: TC-Stereo with only 5 iterations outperforms the baseline RAFT-Stereo model using 32 iterations. The model processes frames in 0.09 seconds, making it suitable for real-time online applications.
  • Stability: Quantitative metrics show that TC-Stereo reduces jitter ($|\Delta d|$) by nearly 40% in occluded areas compared to single-frame methods.

Conclusion

TC-Stereo demonstrates that leveraging temporal priors is more effective than brute-force per-frame computation. While the system is sensitive to extremely fast motion or inaccurate camera poses, it sets a new standard for efficient and stable video stereo matching. Future work may involve integrating pose estimation directly into the learning process to improve robustness in dynamic environments.

Summary updated

BibTeX
@inproceedings{zeng2024temporally,
  author = {Jiaxi Zeng and Chengtang Yao and Yuwei Wu and Yunde Jia},
  title = {{Temporally Consistent Stereo Matching}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72751-1\_20},
}
Figure