Fisheye Distortion Rectification from Deep Straight Lines

Zhucun Xue, Nan Xue, Gui-Song XiaarXiv 2020

Introduction

Fisheye cameras are essential for wide-angle computer vision applications such as autonomous driving and SLAM. However, their ultra-wide field of view introduces severe, non-linear geometric distortion. Traditional rectification requires tedious manual calibration with physical targets. While self-calibration methods exist, they often struggle to detect geometric features in heavily warped images. Recent deep learning approaches have attempted to estimate distortion parameters directly from image semantics, but these "black box" models frequently lack geometric precision.

Visual overview of the LaRecNet rectification process, demonstrating how distorted lines are straightened to recover a perspective view.

This paper introduces the Line-aware Rectification Network (LaRecNet), which bridges the gap between geometric constraints and deep learning. By explicitly embedding the principle that "straight lines in 3D should remain straight in 2D," LaRecNet achieves state-of-the-art accuracy in fisheye image rectification.

Methodology

LaRecNet is an end-to-end deep learning model designed to learn rectification by straightening distorted lines. The architecture consists of four primary components:

  1. Distorted Line Perception (DLP) Module: Utilizing a combination of Pyramid Residual and Stacked Hourglass modules, this component predicts a heatmap of distorted lines directly from the raw fisheye input, bypassing traditional edge detection limitations.
  2. Multiscale Calibration Module: This module processes the original image alongside the predicted line heatmap. A ResNet-50 backbone, split into global and local branches, estimates the camera's distortion parameters based on a 5-parameter polynomial model.
  3. Differentiable Rectification Layer: This layer applies the estimated parameters to mathematically warp the image back to a normal perspective. Its differentiability allows for end-to-end training.
  4. Attentive Uncertainty Regularization (AUR): A novel training module that estimates an "uncertainty map" to identify regions that are difficult to rectify, such as highly distorted edges. This forces the network to focus its learning on these challenging areas.
The architecture of LaRecNet, including (a) the overall pipeline, (b) the Distorted Lines Perception (DLP) module, and (c) the Attentive Uncertainty Regularization (AUR) module.

Datasets and Training

To support the training of LaRecNet, the authors developed the Synthetic Line-rich Fisheye (SLF) dataset. This large-scale dataset includes 46,000 training samples with ground-truth distortion parameters and paired line maps. It comprises two subsets:

  • D-Wireframe: Real-world images from the Wireframe dataset augmented with synthetic fisheye distortions.
  • Fish-SUNCG: 3D room models from the SUNCG dataset rendered with simulated fisheye and perspective lenses.

Key Insights

  • Geometric Priors: Explicitly teaching a network about geometry via line constraints is significantly more effective than relying on pure semantic guessing.
  • Uncertainty-Driven Learning: The AUR module prevents the model from converging on local minima by dynamically shifting focus to the highly distorted peripheries of the image.
  • Synthetic-to-Real Transfer: Training on high-quality synthetic data with perfect geometric annotations allows the model to generalize effectively to real-world fisheye images without additional fine-tuning.

Experimental Results

LaRecNet demonstrates significant improvements over previous state-of-the-art methods across multiple metrics:

  • Geometric Accuracy: On the SLF dataset, the model achieved an average Reprojection Error (RPE) of just 0.33 pixels, compared to over 120 pixels in prior methods.
  • Image Reconstruction: The method reached a PSNR of 28.06 and an SSIM of 0.90, vastly outperforming existing deep learning baselines.
  • Line Straightness: The rectified line heatmaps achieved an F-score of 0.821, indicating high geometric fidelity.
  • Generalization: The model successfully rectifies real-world video sequences and internet images, handling various distortion types including full-frame and full-circle formats.

Conclusion and Future Work

LaRecNet establishes a new benchmark for fisheye rectification by integrating deep learning with classical geometric constraints. While highly effective in man-made environments, the model's reliance on straight lines suggests limitations in purely natural scenes (e.g., forests). Future research will explore multi-frame geometric constraints in video sequences and the incorporation of more diverse real-world annotations to further bridge the synthetic-to-real domain gap.

Summary updated

BibTeX
@misc{xue2020fisheye,
  author = {Zhucun Xue and Nan Xue and Gui-Song Xia},
  title = {{Fisheye Distortion Rectification from Deep Straight Lines}},
  year = {2020},
  eprint = {2003.11386},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.11386},
}
Figure