CodedVO: Coded Visual Odometry

Sachin Shah, Naitri Rajyaguru, Chahat Deep Singh, Christopher A. Metzler, Yiannis AloimonosIEEE RA-L 2024 · DOI

Abstract

Autonomous robots often rely on monocular cameras for odometry estimation and navigation. However, the scale ambiguity problem presents a critical barrier to effective monocular visual odometry. In this paper, we present CodedVO, a novel monocular visual odometry method that overcomes the scale ambiguity problem by employing custom optics to physically encode metric depth information into imagery. By incorporating this information into our odometry pipeline, we achieve state-of-the-art performance in monocular visual odometry with a known scale. We evaluate our method in diverse indoor environments and demonstrate its robustness and adaptability. We achieve a 0.08m average trajectory error in odometry evaluation on the ICL-NUIM indoor odometry dataset.

Introduction

Visual Odometry (VO) is a fundamental capability for autonomous systems, enabling them to estimate position and orientation from image sequences. Monocular VO is particularly attractive due to its low cost and weight. However, it suffers from a fundamental "scale ambiguity" problem: a single camera cannot distinguish between a small object nearby and a large object far away. Without an external scale reference, a monocular system cannot determine if it has moved one meter or one centimeter.

CodedVO addresses this by using computational imaging to bridge the gap between hardware and software. By placing a custom phase mask (a coded aperture) in the camera's optical path, metric distance is physically encoded into the image blur. This allows a single passive camera to estimate its trajectory with metric scale, rivaling the performance of more complex depth-sensing systems.

System overview showing the coded aperture camera, depth estimation, and resulting trajectory.

Methodology

The CodedVO pipeline integrates a physical optical layer directly into a deep learning framework.

Optical Layer and Coded Aperture

The system utilizes a 21x21 phase mask—a thin, transparent plate with varying thickness (0 to 2 $\mu$m)—placed at the camera's focal plane. This mask induces a unique, depth-dependent Point Spread Function (PSF). Consequently, objects are blurred in a mathematically decodable manner based on their distance from the lens. To facilitate training, a coded simulator was developed to generate synthetic coded images from "all-in-focus" RGB images and ground-truth depth maps.

Depth Estimation and Odometry

A UNet architecture is employed to decode the blurry images into metric depth maps. A key innovation is the Depth-Weighted Loss ($\mathcal{L}_{dw}$), which exponentially prioritizes depth accuracy for nearby objects. This is critical for robotics, as errors in near-field depth estimation have a more significant impact on trajectory calculation than errors at a distance. The predicted metric depth map and the original image are then processed by ORB-SLAM2 for robust feature tracking and trajectory estimation.

The CodedVO training and testing pipeline, highlighting the optical layer and the UNet-based depth estimation.

Experiments and Results

The model was trained on the NYUv2 dataset and evaluated using the ICL-NUIM benchmark and a custom UMD-CodedVO dataset rendered in Blender EEVEE. Generalization was further tested on the iBIMS-1 dataset.

CodedVO demonstrates state-of-the-art performance, achieving an average Trajectory Error (ATE) of 0.08m on the ICL-NUIM dataset. This significantly outperforms standard monocular methods and matches the accuracy of RGB-D systems. Unlike general-purpose monocular depth models like ZoeDepth or Metric3D, CodedVO consistently recovers true physical scale. Furthermore, the depth estimation network is highly efficient, running at 858 FPS on an NVIDIA RTX 4090, making it suitable for real-time robotics.

Conclusion

CodedVO successfully overcomes the scale ambiguity of monocular VO by treating the camera lens as the first layer of a neural network. While currently focused on indoor environments (0.5m to 6m range) and requiring specialized hardware modification, it offers a high-speed, high-accuracy solution for metric odometry. Future work includes addressing the sim-to-real gap and exploring mask designs for outdoor or long-range applications.

Summary updated

BibTeX
@article{shah2024codedvo,
  author = {Sachin Shah and Naitri Rajyaguru and Chahat Deep Singh and Christopher A. Metzler and Yiannis Aloimonos},
  title = {{CodedVO: Coded Visual Odometry}},
  journal = {IEEE Robotics and Automation Letters},
  year = {2024},
  doi = {10.1109/lra.2024.3416788},
}
Figure