Abstract: Homography estimation is an important task in computer vision applications, such as image stitching, video stabilization, and camera calibration. Traditional homography estimation methods heavily depend on the quantity and distribution of feature correspondences, leading to poor robustness in low-texture scenes. The learning solutions, on the contrary, try to learn robust deep features but demonstrate unsatisfying performance in the scenes with low overlap rates. In this paper, we address these two problems simultaneously by designing a contextual correlation layer (CCL). The CCL can efficiently capture the long-range correlation within feature maps and can be flexibly used in a learning framework. In addition, considering that a single homography can not represent the complex spatial transformation in depth-varying images with parallax, we propose to predict multi-grid homography from global to local. Moreover, we equip our network with a depth perception capability, by introducing a novel depth-aware shape-preserved loss. Extensive experiments demonstrate the superiority of our method over state-of-the-art solutions in the synthetic benchmark dataset and real-world dataset.
Introduction
Homography estimation—the process of aligning two images of the same scene taken from different perspectives—is a fundamental building block for image stitching and video stabilization. Traditional methods typically rely on distinct feature points (like corners) and assume the scene is a flat plane. However, these methods often fail in low-texture environments (e.g., plain walls) or when significant parallax is present, where objects at different depths move differently as the camera shifts.
While deep learning approaches have improved feature robustness, they often struggle with low-overlap scenes and the computational intensity of standard "cost volumes." Furthermore, most deep models predict a single global transformation, which cannot account for the local distortions caused by 3D scene geometry.
Methodology
This research introduces three primary innovations to overcome the limitations of both traditional and early deep learning frameworks:
1. Contextual Correlation Layer (CCL)
To avoid the memory-intensive nature of brute-force cost volumes, the authors developed the CCL. It utilizes patch-to-patch correlation via convolutional operations and a "Scale Softmax" step to suppress noise and amplify strong matches. This optimization is highly efficient, reducing the model size from 824 MB to just 9 MB while improving the ability to find correspondences in low-overlap scenarios.
2. Multi-Grid Homography Prediction
Instead of a single global transform, the network predicts a mesh of $U \times V$ grids. Using a three-layer pyramid, the system first handles global alignment and then performs local "residual" deformations in the final layer to correct for parallax errors. The authors employ a backward multi-grid deformation strategy, projecting a regular mesh from the warped image back to the source to maintain computational regularity.
3. Depth-Aware Shape-Preserved Loss
To train the model without ground truth (unsupervised), the authors incorporate a pre-trained depth estimation network. Unlike previous rigid shape-preserving losses that constrained the entire mesh, this novel loss uses depth maps to determine where rigidity is necessary. Grids at the same depth are encouraged to stay rigid, while grids at different depths are allowed to deform independently, enabling the mesh to "break" naturally at depth boundaries.
Experimental Results
The model was evaluated on the synthetic Warped MS-COCO dataset and the challenging UDIS-D real-world dataset, which features significant parallax and diverse environmental conditions.
- Accuracy: On MS-COCO, the method achieved a 4-point RMSE of 0.4484, significantly outperforming the previous state-of-the-art (LB-DHN at 0.5962).
- Real-World Robustness: On the UDIS-D dataset, the model consistently outperformed both traditional (SIFT+RANSAC) and deep learning competitors in PSNR and SSIM across all difficulty levels.
- Efficiency: The system processes 512x512 resolution images in approximately 96ms on an RTX 2080 Ti, making it suitable for near-real-time applications.
Conclusion
By combining an efficient contextual correlation mechanism with a depth-aware multi-grid prediction scheme, this framework successfully addresses the dual challenges of low-texture scenes and complex parallax. While current performance is somewhat limited by grid density—with $8 \times 8$ meshes proving most stable—future work will explore scaling these densities and integrating depth information more natively without external pre-trained networks.
Summary updated