Iterative Deep Homography Estimation

Si-Yuan Cao, Jianxin Hu, Ze-Hua Sheng, Hui-Liang ShenCVPR 2022

Abstract

We propose the Iterative Homography Network (IHN), a novel deep homography estimation architecture. Unlike previous works that achieve iterative refinement through network cascading or untrainable IC-LK iterators, IHN utilizes a weight-tied, completely trainable iterator. IHN achieves state-of-the-art accuracy across several challenging datasets. We introduce two versions: IHN for static scenes and IHN-mov for dynamic scenes containing moving objects. Both can be configured in 1-scale for efficiency or 2-scale for maximum accuracy. Our basic 1-scale IHN outperforms most existing methods, while the 2-scale version surpasses all competitors by a significant margin. For dynamic scenes, IHN-mov employs an inlier mask to improve estimation accuracy. Experimentally, our iterative framework achieves a 95% error reduction while saving network parameters. IHN processes sequential image pairs at 32.7 FPS, approximately 8x the speed of traditional IC-LK iterators.

Introduction

Homography estimation—the process of finding the perspective transformation between two images—is a cornerstone of computer vision, essential for image stitching, SLAM, and autonomous navigation. Traditional methods, such as the Lucas-Kanade (LK) algorithm, are iterative but suffer from mathematical "blind spots" like rank-deficient Jacobians and are difficult to optimize within deep learning pipelines.

Previous deep learning approaches attempted to mimic iteration by "cascading" multiple networks. However, this approach is parameter-heavy and limited to a fixed number of steps. Furthermore, most methods struggle with dynamic scenes where moving objects (e.g., cars or pedestrians) violate the assumption that a single global transform can describe the entire image pair. The Iterative Homography Network (IHN) addresses these challenges by introducing a fully trainable, recurrent architecture inspired by optical flow techniques.

The IHN Architecture

IHN departs from simple image concatenation by explicitly modeling the relationship between image pairs through a recurrent framework. The architecture consists of several key components:

Siamese Feature Extraction

A shared Convolutional Neural Network (CNN) extracts feature maps from both the source and target images, ensuring that the representation space is consistent for both inputs.

Explicit 4D Correlation Volume

Rather than letting the network implicitly learn correspondences, IHN explicitly computes a 4D correlation volume. This volume represents the similarity between every pixel in the source feature map and every pixel in the target feature map, providing a dense geometric foundation for the estimation process.

Iterative Homography Estimator (IHE)

The IHE is the core of the network. It uses a recurrent structure with tied weights, meaning the same parameters are reused in every iteration. This allows the network to refine its prediction multiple times without increasing the parameter count. The IHE includes a Coordinate Projector, a Correlation Updater, and a Global Motion Aggregator (GMA).

Handling Dynamic Scenes with IHN-mov

In real-world scenarios, moving objects often act as outliers that degrade the accuracy of global homography estimation. To combat this, the authors designed IHN-mov, which incorporates a specific aggregator that produces an inlier mask.

This mask functions as a "deep RANSAC," automatically learning to identify and ignore regions that do not fit the global homography (such as a moving vehicle). Crucially, this module does not require explicit mask labels during training; it learns to identify outliers because ignoring them leads to a more mathematically consistent global transform, thereby reducing the overall training loss.

Experimental Evaluation

The researchers evaluated IHN across several diverse benchmarks to test accuracy, speed, and generalization:

  • MSCOCO: On this standard benchmark for static scenes, the 2-scale IHN outperformed all competitors. Over 90% of its Average Corner Errors (ACE) fell below 0.1 pixels.
  • SPID (Surveillance Pedestrian Image Dataset): In scenes with significant foreground movement, the IHN-mov variant significantly outperformed standard methods by successfully masking out dynamic outliers.
  • Cross-Modal Generalization: When tested on Google Earth and Satellite data, IHN demonstrated superior robustness to seasonal changes and modality shifts compared to previous state-of-the-art methods.
  • Efficiency: IHN achieves 32.7 FPS on sequential image pairs. This is a massive improvement over the Deep Lucas-Kanade Feature Map (DLKFM) method, making IHN viable for real-time robotics.

Key Insights

  1. Iteration > Depth: The study demonstrates that iteratively refining a prediction using tied weights is more efficient and accurate than simply stacking more layers. IHN achieved a 95% error reduction through iteration alone.
  2. Weight Tying for Efficiency: By using tied weights in the iterator, the model remains relatively small in parameter count while achieving the representational power of a much deeper, cascaded network.
  3. Robustness through Learning: The ability of IHN-mov to learn inlier masks without direct supervision highlights the power of incorporating geometric constraints into deep learning architectures.

Conclusion and Future Work

IHN represents a significant step forward in deep homography estimation, combining the strengths of classical iterative refinement with the representational power of deep learning. While the 4D correlation volume introduces some memory overhead, the resulting gains in accuracy and speed are substantial. Future research may focus on optimizing correlation computations to reduce VRAM usage or exploring higher-resolution feature maps to further refine the inlier masks in extremely cluttered environments.

Summary updated

BibTeX
@inproceedings{cao2022iterative,
  author = {Si-Yuan Cao and Jianxin Hu and Ze-Hua Sheng and Hui-Liang Shen},
  title = {{Iterative Deep Homography Estimation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  url = {https://openreview.net/forum?id=2xXFRQHtPU},
}
Figure