Recurrent Homography Estimation Using Homography-Guided Image Warping and Focus Transformer

Si-Yuan Cao, Runmin Zhang, Lun Luo, Beinan Yu, Zehua Sheng, Junwei Li, Hui-Liang Shen

Introduction

Homography estimation—calculating the mathematical transformation that relates two images of the same planar surface—is a cornerstone of computer vision, essential for tasks like image stitching, SLAM, and autonomous navigation. While deep learning has improved this field, two major hurdles remain: feature inconsistency, where standard CNNs struggle with rotation and perspective shifts, and computational efficiency, as Transformers are often too heavy for high-resolution image matching.

Methodology

The authors introduce RHWF, a recurrent framework that tackles these issues through two novel components: Homography-Guided Image Warping and the Focus Transformer (FocusFormer).

Homography-Guided Image Warping

Instead of trying to match two very different images in one go, the system iteratively warps the second image based on its current best guess. As the images become more aligned, the features extracted by the CNN backbone become more consistent, making each subsequent refinement step more accurate. The authors found that warping the raw image and re-extracting features is far more effective than warping abstract feature maps.

Focus Transformer (FocusFormer)

The FocusFormer utilizes an Attention-Focusing Mechanism. In early iterations, it looks globally across the whole image to find coarse matches. As warping brings the images closer together, the transformer automatically shrinks its search area (Global → Nonlocal → Local). This "focusing" mimics how a human might align two maps—first looking at the big picture, then zooming in on specific landmarks to fine-tune the overlap.

The architecture of RHWF and the FocusFormer module, illustrating the recurrent pipeline and the attention-focusing mechanism.

Unlike "cascaded" models that stack many different networks, RHWF is recurrent, meaning it reuses the same weights for every iteration, which keeps the model size small and parameter-efficient.

Experimental Results

The model was evaluated on several rigorous benchmarks, including MSCOCO, cross-resolution variants (4× and 8× gaps), and cross-modal datasets like GoogleEarth and GoogleMap.

Performance and Efficiency

RHWF sets a new bar for performance across these datasets:

  • Superior Accuracy: On the MSCOCO dataset, it reduced the Mean Average Corner Error (MACE) by 70% compared to LocalTrans and 38.1% compared to IHN.
  • Lightweight Design: It achieved these results while saving 86.5% in parameter costs compared to LocalTrans and 24.6% compared to IHN.
  • Computational Savings: By shrinking the attention radius over time, the FocusFormer reduces computational costs from 7.14 GFLOPs to 3.18 GFLOPs without losing accuracy.
Quantitative evaluation of RHWF against state-of-the-art methods, showing superior performance on MSCOCO, GoogleEarth, and GoogleMap.

Conclusion and Future Work

RHWF proves that smart recurrence and dynamic attention can outperform models ten times its size. While the iterative re-extraction of features adds some computational overhead, the framework remains highly robust, even in extreme 8× resolution gap scenarios. Future directions include exploring adaptive iteration counts to stop the process early once alignment is perfected, further optimizing the speed-accuracy trade-off.

Summary updated

BibTeX
@inproceedings{cao2023recurrent,
  author = {Si-Yuan Cao and Runmin Zhang and Lun Luo and Beinan Yu and Zehua Sheng and Junwei Li and Hui-Liang Shen},
  title = {{Recurrent Homography Estimation Using Homography-Guided Image Warping and Focus Transformer}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  doi = {10.1109/cvpr52729.2023.00948},
}
Figure