Stereo DSO: Large-Scale Direct Sparse Visual Odometry with Stereo Cameras

Rui Wang, Martin Schwörer, Daniel Cremers

Introduction

Visual Odometry (VO) is a fundamental component of autonomous navigation, enabling robots and vehicles to estimate their trajectory using only camera input. While monocular VO systems have reached high levels of sophistication, they are inherently limited by scale ambiguity—the inability to determine the absolute size of the environment—and scale drift, where the estimated scale fluctuates over time. Stereo DSO (Direct Sparse Odometry) addresses these challenges by extending the high-precision "direct" tracking paradigm to stereo camera systems, integrating static stereo constraints into a temporal multi-view bundle adjustment pipeline.

The Challenge of Scale and Direct Methods

Existing VO methods generally fall into two categories: feature-based and direct. Feature-based methods (e.g., ORB-SLAM) track discrete landmarks like corners, which offers robustness but results in sparse maps. Direct methods track raw pixel intensities, offering superior precision and denser reconstructions. However, direct methods are traditionally sensitive to rapid motion and exposure changes.

Stereo DSO combines the precision of direct sparse odometry with the absolute scale provided by a stereo camera's fixed baseline. This integration effectively eliminates scale drift, making the system suitable for large-scale, long-term tracking in real-world environments.

Methodology

The core of Stereo DSO is a joint windowed optimization that minimizes a photometric error function. Unlike traditional methods that treat stereo matching and temporal tracking as separate steps, Stereo DSO tightly couples them.

System Pipeline

The system processes incoming stereo frames through a multi-stage pipeline involving initialization, tracking, and keyframe management.

System overview of Stereo DSO showing the tracking and optimization pipeline.
  1. Direct & Sparse Selection: The algorithm selects pixels from regions with high intensity gradients, avoiding the overhead of full-image processing while maintaining geometric detail.
  2. Hybrid Constraints: The optimization minimizes error across two dimensions: Temporal Multi-View Stereo (tracking pixels across time) and Static Stereo (matching pixels between the left and right cameras at the same timestamp).
  3. Affine Brightness Modeling: To handle varying lighting conditions, the system includes parameters ($a$ and $b$) to compensate for affine brightness changes, ensuring robustness when moving between different illumination zones.
  4. Sliding Window Optimization: To maintain real-time performance, the system optimizes a window of recent keyframes. Older data is marginalized using the Schur complement, preserving historical information without increasing computational complexity.

Key Insights: The Stereo Coupling Factor

A critical contribution of this work is the introduction of a stereo coupling factor ($\lambda$). This parameter balances the influence of static stereo constraints against temporal ones.

Translational and rotational error as a function of the stereo coupling factor λ.

As shown in the evaluation, there is a "sweet spot" for this coupling (typically $\lambda \approx 1$ to $2$). If the weight is too low, the system reverts to monocular-like behavior with significant scale drift. If the weight is too high, the system becomes overly sensitive to outliers in the static stereo matching, leading to increased rotational error. Finding this balance is key to the system's state-of-the-art accuracy.

Experimental Results

The authors evaluated Stereo DSO on the KITTI Odometry and Cityscapes datasets:

  • KITTI Performance: The system achieved a mean translational error of 0.84% and a rotational error of 0.20 deg/100m, outperforming Stereo LSD-SLAM and rivaling Stereo ORB-SLAM (without loop closure).
  • Rolling Shutter Resilience: Despite lacking an explicit rolling shutter model, Stereo DSO performed robustly on the Cityscapes dataset. Because the left and right images are synchronized row-by-row, the static stereo constraints help correct the geometric distortions typically introduced by rolling shutters.
  • Scale Stability: Qualitative analysis confirms that while monocular systems often see their maps "shrink" or "grow" over long trajectories, Stereo DSO maintains a consistent, metrically accurate scale throughout sequences exceeding 100,000 frames.

Limitations and Future Work

While Stereo DSO is highly robust, it currently assumes a static environment. Moving objects in a scene can introduce photometric noise, potentially degrading tracking accuracy. Furthermore, while the affine brightness model handles moderate changes, extreme exposure shifts remain a challenge. Future iterations of the system could incorporate loop closure to transform this odometry pipeline into a full SLAM (Simultaneous Localization and Mapping) system, allowing for global error correction over even larger scales.

Summary updated

BibTeX
@inproceedings{wang2017stereo,
  author = {Rui Wang and Martin Schwörer and Daniel Cremers},
  title = {{Stereo DSO: Large-Scale Direct Sparse Visual Odometry with Stereo Cameras}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  url = {https://openreview.net/forum?id=Hkb36lzOZS},
}
Figure