Monocular Road Planar Parallax Estimation

Haobo Yuan, Teng Chen, Wei Sui, Jiafeng Xie, Lefei Zhang, Yuan Li, Qian Zhang

TL;DR

The Road Planar Parallax Attention Network (RPANet) leverages the omnipresent geometry of the road surface to estimate 3D structures from monocular video sequences. By predicting a pixel-wise $\gamma$ map (the ratio of height to depth) through a novel cross-attention mechanism, the method achieves significantly higher accuracy in depth and height estimation for autonomous driving compared to standard deep learning baselines.

What Problem Does This Paper Address?

Accurate 3D sensing is the backbone of autonomous driving, enabling tasks like obstacle detection and distance measurement. While LiDAR provides precise data, it is prohibitively expensive for mass production. Vision-based alternatives, like monocular depth estimation, are cheaper but often treat depth as a simple per-pixel regression task, ignoring the rich geometric constraints inherent in a scene.

Traditional "planar parallax" methods from the 1990s offer a solution by using a reference plane (like the road) to isolate 3D structure from camera motion. However, these classical algorithms are notoriously sensitive to image noise and struggle with non-rigid scenes. The authors aim to bridge this gap by combining the robustness of deep learning with the interpretability of planar parallax geometry.

Methods

The core of the approach is RPANet, a deep neural network designed to estimate dense planar parallax.

  1. Geometric Foundation: The method assumes the road is a reference plane. It takes two consecutive images and aligns them using a homography matrix based on that road plane. In this aligned view, the road looks identical in both frames, while objects with height (cars, trees, buildings) appear displaced. This displacement is the "residual flow," which is directly proportional to the object's height-to-depth ratio ($\gamma$).
  2. RPANet Architecture: The network consists of a CNN feature extractor and a novel Cross-Attention Module. This module (illustrated in Figure 3) uses a neighborhood matching strategy to find correspondences between the two aligned images, effectively "perceiving" the displacements caused by parallax.
  3. The $\gamma$ Map: Instead of predicting depth directly, the network outputs a $\gamma$ map ($\gamma = h/d$). This map is then used to reconstruct the 3D scene using derived geometric formulas, as shown in Figure 1.
  4. Loss Functions: The network is trained using a combination of sparse supervised loss (from LiDAR ground truth), a photometric loss (measuring how well the predicted parallax can "warp" one image to match the other), and an edge-aware smoothness loss.
The proposed Road Planar Parallax Attention Neural Network architecture.

Datasets

Because no public dataset existed for this specific task, the authors created the RP2-Waymo Dataset.

  • Source: Derived from the Waymo Open Dataset.
  • Scale: 13,030 training samples and 1,287 validation samples.
  • Features: It includes high-precision road homography and ground truth $\gamma$ maps generated by projecting LiDAR points onto the images.
  • Diversity: The dataset covers various environments (city, highway, suburb) and conditions (day, night, different weather).

Key Insights and Ideas

  • The Road as a Reference: In driving scenarios, the road is an "omnipresent" reference plane. Utilizing it simplifies the 3D reconstruction problem by removing the complexities of camera rotation.
  • Geometry as a Bridge: By predicting $\gamma$ rather than raw depth, the network's output remains tied to physical geometric constraints. This makes the model more interpretable and easier for the network to learn compared to unconstrained depth regression.
  • Attention to Displacement: Standard CNNs can struggle with the pixel displacements inherent in parallax. The proposed cross-attention mechanism (Figure 3) is specifically designed to model these matching relationships across frames.
Illustration of the cross-attention module and its matching field.

Key Results

RPANet significantly outperformed traditional geometry-based methods and standard deep learning baselines (like ResNet-18 based depth nets).

  • Height Accuracy: In the "Road Plane Available" (PA) setting, RPANet achieved a Mean Absolute Error (MAE) for height of just 0.019m for objects under 0.1m, compared to 0.057m for the standard depth baseline.
  • Depth Accuracy: For objects within 30 meters, RPANet achieved a depth MAE of 0.337m, outperforming the baseline's 0.545m.
  • Qualitative Superiority: As seen in Figure 5, RPANet produces much sharper boundaries for objects like trees and vehicles, whereas standard depth networks often "blur" these objects into the road surface.
Qualitative comparison showing RPANet's superior depth boundary definition.

Limitations and Future Work

  • Nighttime Performance: The model's accuracy degrades at night (height error increases to 0.122m for $h < 1m$). The authors attribute this to poor image quality and a lack of visual clues in dark environments.
  • Long-Range Accuracy: Errors increase for distant pixels (beyond 50-80m) because LiDAR ground truth becomes sparse and the visual displacement becomes too small to match accurately.
  • Future Directions: The authors suggest that combining the strengths of standard depth estimation (which works well at a distance) with planar parallax (which is highly accurate nearby) could lead to a more robust all-around system. They also plan to investigate how to better calibrate road planes using in-car sensors rather than relying on LiDAR for the initial homography.

Summary updated

BibTeX
@article{yuan2023monocular,
  author = {Haobo Yuan and Teng Chen and Wei Sui and Jiafeng Xie and Lefei Zhang and Yuan Li and Qian Zhang},
  title = {{Monocular Road Planar Parallax Estimation}},
  journal = {IEEE Trans. Image Process.},
  year = {2023},
  doi = {10.1109/tip.2023.3289323},
}
Figure