Online Photometric Calibration for Auto Exposure Video for Realtime Visual Odometry and SLAM

Paul Bergmann, Rui Wang, Daniel Cremers

Introduction

Direct Visual Odometry (VO) and SLAM algorithms are known for their high precision, yet they typically rely on a fundamental assumption: brightness constancy. This assumption posits that a 3D point's pixel intensity remains constant across different frames and viewpoints. In practice, this is rarely true for off-the-shelf cameras due to auto-exposure adjustments, lens vignetting, and non-linear Camera Response Functions (CRF). Consequently, direct methods often require tedious offline calibration. This paper presents a method for real-time, online photometric calibration, enabling "plug-and-play" SLAM on standard hardware.

Addressing Photometric Disturbances

Three primary factors violate the brightness constancy assumption in real-world scenarios:

  1. Auto-Exposure: Shutter speed changes dynamically as the camera moves between light and dark areas.
  2. Vignetting: A radial fall-off in light intensity toward the image edges, making corners darker than the center.
  3. Camera Response Function (CRF): The non-linear mapping from light energy to pixel values used by sensors to improve image aesthetics.

Without compensation, these factors introduce significant drift or cause tracking failure in direct systems like Direct Sparse Odometry (DSO).

Methodology

The proposed system operates in two stages: a tracking frontend and an optimization backend.

Gain-Robust KLT Tracking

Standard feature tracking often fails during abrupt exposure changes. The authors implement a gain-adaptive KLT tracker that simultaneously estimates point motion and brightness changes between frames. This ensures stable data association even under flickering light conditions.

Gain-robust KLT tracking maintains feature tracks across frames with varying exposure levels.

Joint Nonlinear Optimization

The backend formulates an energy function to jointly estimate exposure times ($e_i$), the CRF ($f$), vignetting ($V$), and true scene radiance ($L$). To maintain real-time performance, the system decouples these variables: exposure is updated rapidly using a sliding window of recent frames, while the more complex CRF and vignetting parameters are refined in the background.

Comparison between raw input frames (top) and photometrically calibrated frames (bottom), showing normalized exposure and vignetting.

Key Insights

  • Radial Motion for Vignetting: To accurately model the light fall-off at the edges, the system prioritizes long feature tracks that move from the image center to the periphery.
  • Ambiguity Resolution: There is an inherent mathematical ambiguity between exposure and the CRF. The authors resolve this by fixing the response function at a specific anchor point (e.g., $f(1) = 255$).
  • Forward-Backward Filtering: To ensure high-quality data for optimization, tracks are verified by tracking them backward; inconsistent tracks are discarded.

Evaluation and Results

The method was validated across synthetic (ICL-NUIM) and real-world (TUM Mono VO, EuRoC MAV) datasets.

  • Robustness: On ICL-NUIM, standard DSO failed under simulated disturbances, while the proposed online calibration allowed it to recover trajectories nearly identical to the ground truth.
  • Accuracy: Performance on the TUM Mono VO dataset was comparable to using factory-provided photometric calibration.
  • Efficiency: The system runs with minimal latency, making it suitable for integration into existing SLAM pipelines.

Conclusion

By automating the photometric calibration process, this work removes a significant barrier to the widespread deployment of direct SLAM. While the current model assumes Lambertian surfaces and requires camera motion to calibrate vignetting, it demonstrates that high-fidelity visual odometry is possible with uncalibrated, auto-exposure cameras in real-time.

Summary updated

BibTeX
@article{bergmann2018online,
  author = {Paul Bergmann and Rui Wang and Daniel Cremers},
  title = {{Online Photometric Calibration for Auto Exposure Video for Realtime Visual Odometry and SLAM}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2018},
  doi = {10.1109/lra.2017.2777002},
}
Figure