Abstract
Affine rectification is a fundamental task in computer vision, typically requiring either pre-calibrated cameras or the presence of parallel lines in a scene. This paper introduces a modern, robust approach that jointly estimates radial lens distortion and affine rectification using only repeated coplanar textures. By leveraging the invariant that rectified repeats must have equal scales, the authors propose the first minimal solvers capable of "flattening" images from wide-angle and fisheye lenses without traditional geometric cues. The method demonstrates superior numerical stability and efficiency, making it highly suitable for real-world applications.
Introduction
Most consumer cameras, particularly wide-angle devices like GoPros, introduce significant radial distortion, often referred to as the "barrel" effect. Standard affine rectification—the process of transforming a slanted plane to appear fronto-parallel—assumes a pinhole camera model. When radial distortion is ignored, these rectification processes typically fail. Furthermore, existing rectification methods frequently rely on detecting parallel straight lines (Manhattan world assumptions), which are absent in many natural and architectural scenes, such as textured carpets, circular waterfronts, or patterned facades.
Researchers from the Czech Institute of Informatics, Robotics and Cybernetics (CIIRC) and ETH Zürich address these limitations by utilizing repeated textures (e.g., bricks, windows, or logos) as a geometric proxy. Their system solves for lens distortion and camera tilt simultaneously, enabling accurate reconstruction from a single image without requiring straight lines or pre-calibration.
Methodology: The Equal-Scale Invariant
The core technical contribution of the paper is the "equal-scale" invariant. In a perfectly rectified image, two identical objects located on the same plane must have the exact same scale. The authors formulate this principle as a system of polynomial equations.
Key technical components of the approach include:
- The Division Model: The authors utilize Fitzgibbon’s one-parameter division model for radial distortion. Unlike more complex multi-parameter models, the division model allows for simpler polynomial constraints that are mathematically easier to solve while remaining sufficiently accurate for wide-angle lenses.
- Minimal Solvers: Using the Gröbner basis method, the researchers developed solvers that require the absolute minimum amount of data—as few as four repeated local features—to find a solution. This minimality is crucial for efficiency within robust estimation frameworks like RANSAC.
- Stability Sampling: A significant contribution is the focus on numerical stability. Automated solver generators often produce "brittle" code that fails when faced with noisy real-world data. The authors sampled thousands of feasible "monomial bases" to identify the specific mathematical formulation that maximized numerical stability, outperforming standard GRevLex bases.
- Scale as Geometry: The "aha moment" of the research is realizing that the local change of scale, measured by the Jacobian determinant of the transformation, directly encodes the information needed to identify the plane's vanishing line.
Experimental Evaluation
The method was rigorously tested using both synthetic data and a diverse set of real-world images. Synthetic tests involved 1,000 generated 3D scenes with varying focal lengths, tilts, and noise levels to measure warp error and distortion estimation accuracy. Real-world evaluation utilized images from Android phones, a GoPro Hero 4, and a Panasonic DMC-GM5 equipped with a 7.5mm fisheye lens.
Key Results
- Robustness to Noise: In synthetic tests with 1-pixel of noise, the proposed solvers provided accurate proposals 75% of the time. In contrast, state-of-the-art conjugate translation solvers succeeded less than 20% of the time under similar conditions.
- Computational Efficiency: The solvers are highly efficient, with MATLAB implementations running in 1.7 to 2.2 milliseconds on a standard desktop. This speed makes them ideal for integration into real-time computer vision pipelines.
- Fisheye Capability: The method successfully rectified images from extreme 8mm and 10mm fisheye lenses. This demonstrates that the simplified division model is robust enough to handle extreme optics that technically exceed its theoretical assumptions.
Discussion and Limitations
While highly effective, the approach has certain limitations. The one-parameter division model serves as an excellent initial estimate but may require a secondary non-linear refinement with a higher-order model for high-precision photogrammetry on extreme fisheye lenses.
Additionally, the solver depends on the presence of repeated textures; in a completely non-repeating, organic scene, the solver would have no input data. Degenerate configurations also pose a challenge, such as when the vanishing line passes exactly through the center of the image or when repeated features are clustered too closely together, providing poor "coverage" of the lens distortion. Future work may involve extending the model to handle more complex distortion profiles or integrating it with other geometric primitives to increase scene coverage.
Summary updated