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.
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.
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