Progressively Complementary Network for Fisheye Image Rectification Using Appearance Flow

Shangrong Yang, Chunyu Lin, Kang Liao, Chunjie Zhang, Yao Zhao

Abstract

Fisheye image rectification is a critical task for wide-angle computer vision applications, yet traditional deep learning methods often struggle with blurry results and residual distortion. This paper introduces the Progressively Complementary Network (PCN), which decouples the rectification process into structure correction and content reconstruction. By predicting an "appearance flow" to pre-correct distorted features within skip connections, PCN prevents the decoder from becoming overwhelmed by simultaneous geometric and textural tasks. Experimental results demonstrate that PCN significantly outperforms state-of-the-art methods in both quantitative metrics and visual fidelity.

Introduction: The Challenge of Fisheye Distortion

Fisheye lenses are indispensable for wide-angle surveillance and autonomous driving. However, the severe radial distortion they introduce violates the perspective assumptions of standard computer vision algorithms. Current deep learning solutions generally fall into two categories: regression-based methods, which predict mathematical parameters to un-distort images, and generation-based methods, which use encoder-decoder architectures to "re-draw" corrected views.

While generation-based methods are flexible and do not require explicit camera labels, they suffer from two primary flaws:

  1. Overburdened Decoders: The decoder is forced to learn geometric structure correction and fine texture reconstruction simultaneously, often resulting in blurry outputs.
  2. Distortion Diffusion: Standard skip connections pass high-resolution details from the encoder to the decoder but inadvertently carry the original distortion. This "pollutes" the decoder, making clean rectification nearly impossible.
The proposed complementary architecture (bottom) separates structure and content tasks to avoid the blurring common in traditional encoder-decoder models (top).

The Progressively Complementary Network (PCN)

To address these issues, the authors propose a dual-module architecture that treats structure and content as complementary but distinct tasks.

Dual-Module Architecture

The PCN consists of two primary components:

  • Appearance Flow Estimation Module: This module analyzes the distorted input to predict a series of dense displacement fields, or "appearance flows." These flows provide the coordinate mapping necessary to move pixels from their distorted positions to their rectified locations.
  • Distortion Correction Module: This main encoder-decoder network performs the actual image reconstruction. Crucially, it incorporates Feature Correction Layers within its skip connections.

Progressively Complementary Mechanism

The network leverages the observation that low-level features (early in the encoder) exhibit high distortion, while high-level features (deeper in the network) have less. The predicted appearance flows are used to "pre-correct" these features at every resolution level before they are passed to the decoder. This ensures that the decoder only receives geometrically aligned information, allowing it to focus entirely on texture synthesis.

Detailed architecture of the PCN, showing the Flow Estimation Module (top) and the Distortion Correction Module (bottom) linked by progressive feature correction layers.

Training and Datasets

Due to the scarcity of real-world fisheye/rectified image pairs, the model was trained on a synthetic dataset. The authors utilized 100,000 high-quality perspective images from the Places2 dataset as ground truth and applied a polynomial distortion model to create synthetic fisheye counterparts. The model was supervised using a multi-scale loss function, combining reconstruction loss, adversarial (GAN) loss, and a novel loss that evaluates the quality of corrected feature maps at different layers.

Key Results and Insights

The PCN achieves a significant performance jump over previous state-of-the-art (SOTA) methods like DDM and DR-GAN:

  • Quantitative Performance: On synthetic test sets, PCN achieved a PSNR of 25.06 and an SSIM of 0.8732, compared to DDM's 22.16 PSNR and 0.7538 SSIM.
  • Qualitative Fidelity: Visual evaluations show that PCN produces significantly straighter lines, particularly near the image boundaries where distortion is most severe. It also preserves fine textures, such as text and brickwork, which are typically lost to blur in standard generative models.
  • Efficiency: Despite its dual-module design, the PCN maintains a competitive parameter count. The authors introduced an Average Parameter Performance (AVP) metric to demonstrate that their network offers a superior trade-off between model size and rectification quality.

Conclusion and Future Directions

The Progressively Complementary Network demonstrates that feature-level correction is a powerful tool for geometric image tasks. By transforming features during the skip connection, the authors turned a traditional liability into a major asset for image quality. Future work may focus on closing the synthetic-to-real gap by modeling real-world lens artifacts like chromatic aberration and addressing boundary artifacts where information is missing from the original fisheye circle. The underlying logic of PCN could also be extended to other domains, such as document unwarping or wide-angle portrait correction.

Summary updated

BibTeX
@inproceedings{yang2021progressively,
  author = {Shangrong Yang and Chunyu Lin and Kang Liao and Chunjie Zhang and Yao Zhao},
  title = {{Progressively Complementary Network for Fisheye Image Rectification Using Appearance Flow}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00628},
}
Figure