Radial distortion homography

Zuzana Kukelova, Jan Heller, Martin Bujnak, Tomás PajdlaCVPR 2015

Abstract

The importance of precise homography estimation is often underestimated even though it plays a crucial role in various vision applications such as plane or planarity detection, scene degeneracy tests, camera motion classification, image stitching, and many more. Ignoring the radial distortion component in homography estimation—even for classical perspective cameras—may lead to significant errors or totally wrong estimates. In this paper, we fill the gap among the homography estimation methods by presenting two algorithms for estimating homography between two cameras with different radial distortions. Both algorithms can handle planar scenes as well as scenes where the relative motion between the cameras is a pure rotation. The first algorithm uses the minimal number of five image point correspondences and solves a nonlinear system of polynomial equations using the Gröbner basis method. The second algorithm uses a non-minimal number of six image point correspondences and leads to a simple system of two quadratic equations in two unknowns and one system of six linear equations. The proposed algorithms are fast, stable, and can be efficiently used inside a RANSAC loop.

Introduction

In computer vision, a homography is a fundamental mathematical transformation relating two images of the same planar surface or two images taken from the same viewpoint at different rotations. It is essential for image stitching, panorama creation, and camera calibration.

Standard estimation techniques typically assume a perfect pinhole camera model. However, real-world lenses—particularly wide-angle ones found on action cameras and smartphones—exhibit significant radial distortion. Neglecting this distortion during initial estimation can lead to alignment failures or cause 3D reconstruction pipelines to misidentify distorted planes as complex 3D structures. Existing methods were often limited by assuming identical distortion across cameras, failing on planar scenes, or being too computationally intensive for real-time applications. This research addresses these gaps by providing solvers that accommodate different distortions for each camera across all scene types.

Proposed Solvers

The authors propose two solvers based on the one-parameter division model for radial distortion, which simplifies the undistortion process into a manageable polynomial form.

  1. Minimal Solver ($H5\lambda_1\lambda_2$): Utilizing only five point correspondences, this solver employs the Gröbner basis method to resolve a complex system of polynomial equations. The implementation is optimized into a high-speed 16x21 matrix elimination.
  2. Non-minimal Solver ($H6\lambda_1\lambda_2$): By incorporating a sixth point, the mathematical complexity is reduced to a system of two quadratic and six linear equations. This version is even faster than the minimal solver, though it exhibits higher sensitivity to image noise.
Numerical stability of the proposed solvers ($H5\lambda_1\lambda_2$ and $H6\lambda_1\lambda_2$) compared to the $F9\lambda_1\lambda_2$ baseline, showing significantly lower relative error.

Both algorithms are scene-oblivious, performing reliably for both planar scenes and pure camera rotations.

Experimental Evaluation

The solvers were rigorously tested using both synthetic and real-world datasets. Synthetic tests involved 10,000 generated scenes to evaluate numerical stability and noise resistance. Real-world validation used hardware with diverse focal lengths and distortion profiles, including a GoPro Hero3, a Canon PowerShot, and an HTC Desire 500 smartphone.

Key Results

  • Blazing Speed: The $H5\lambda_1\lambda_2$ solver executes in approximately 2.6 $\mu$s, while the $H6\lambda_1\lambda_2$ solver takes just 1.5 $\mu$s. This represents a 1,000x to 5,000x speedup over previous state-of-the-art methods.
  • Numerical Stability: As shown in the performance histograms, the proposed solvers maintain high precision (low relative error) even under challenging conditions where traditional methods struggle.
  • Robust Alignment: In practical stitching scenarios, the new solvers achieved inlier ratios of 71–77%, whereas standard $H4$ or $H5\lambda$ solvers often failed to find a correct model, resulting in significant ghosting.
Estimation of distortion parameters $\lambda_1$ and $\lambda_2$ across varying levels of image noise (in pixels).

Discussion and Limitations

By integrating distortion parameters ($\lambda_1, \lambda_2$) directly into the homography matrix, these solvers identify the true geometry much earlier in the vision pipeline. This improves "seed scores" in Structure-from-Motion (SfM) systems, preventing bad initializations caused by misclassified distorted planes.

However, some limitations remain. The 6-point solver ($H6\lambda_1\lambda_2$) is more susceptible to noise than the 5-point version. Additionally, while the one-parameter division model is effective for most consumer lenses, it may not fully account for complex "mustache" distortions or decentered lenses where the distortion center is not at the image midpoint.

Summary updated

BibTeX
@inproceedings{kukelova2015radial,
  author = {Zuzana Kukelova and Jan Heller and Martin Bujnak and Tomás Pajdla},
  title = {{Radial distortion homography}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2015},
  url = {https://openreview.net/forum?id=SJWKUeGdbr},
}
Figure