NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Hierarchical grid-constrained fusion network for image stitching

Yongqin Zhang, Ruan Bai-yao, Lei Du, Lianjiang Li, Zhan Li, XiaoFeng Wang, Meng Wu, Jinsheng XiaoJournal of King Saud University - Computer and Information Sciences 2025

Abstract

The digitization of ancient murals is crucial in preserving, inheriting, and utilizing cultural heritage. Due to the vast coverage of murals, digitization typically involves capturing images in segments and then stitching them together. However, existing image stitching techniques face limitations regarding efficiency, generalization capabilities, and robustness, which hinder their practical applicability. To solve these problems and improve the performance of image stitching, this paper proposes an unsupervised hierarchical grid-constrained fusion network (HGFN) model. This model consists of two main modules: image alignment and image synthesis. The image alignment module incorporates prior knowledge, such as feature pyramids, attention mechanisms, and context dependencies, to facilitate feature extraction. It also includes a multi-scale grid homography generation part that utilizes region masks to create a deformation field. Additionally, a stitching-domain transformation unit is employed to ensure spatial consistency by deforming the input reference and target images. In the image synthesis module, a progressive inference fusion network framework is proposed to simplify the complex image fusion problem into a multi-granularity image synthesis problem. This framework utilizes two encoder-decoder cascaded network units to merge information progressively from coarse to fine granularity, producing high-resolution stitched images. Experimental results demonstrate that the proposed model exhibits superior robustness on both public and custom image datasets, and generally outperforms state-of-the-art image stitching methods, especially in subjective visual assessments.

Introduction

Image stitching—the process of combining multiple photos with overlapping fields of view into a single panoramic image—is a cornerstone of computer vision. However, it remains notoriously difficult when dealing with "real-world" conditions: large parallax (where objects shift relative to each other), low-texture surfaces, and damaged subjects.

The authors specifically highlight the digitization of ancient murals. These cultural treasures are often too large to capture in one shot, requiring segment-by-segment photography. Traditional methods (like SIFT+RANSAC) often fail here because murals can have smooth, featureless regions or physical deterioration (cracks and peeling) that confuse standard feature descriptors. Existing deep learning models often struggle to balance model size with the need for high-resolution, artifact-free outputs.

Example of overlapping input mural images used in the study.

Methodology

The HGFN model is an unsupervised framework, meaning it doesn't require "ground truth" stitched images for training. It operates in two main stages: image alignment and image synthesis.

The overall architecture of the Hierarchical Grid-constrained Fusion Network (HGFN), showing the alignment and synthesis pipelines.

1. Image Alignment

The alignment module focuses on "where" the images overlap and how they should be warped:

  • Region Masking: The network learns to identify overlapping regions, allowing it to ignore non-overlapping "distractions."
  • Hierarchical Homography: Instead of calculating one global transformation, the model uses a multi-scale grid. It employs Convolutional Block Attention (CBA) and Context Regression Networks (CRN) to predict how different parts of the image should warp at various scales (1/8, 1/4, and 1/2).
  • Grid Geometry Loss: To prevent unnatural distortions, a specific loss function ensures that neighboring cells in the warping grid maintain structural consistency.

2. Image Synthesis

The synthesis module addresses "how" to blend the aligned images:

  • Progressive Inference: Rather than generating a high-resolution image in one step, the model uses two cascaded encoder-decoder units.
  • Coarse-to-Fine Synthesis: A coarse-grained unit establishes the basic structure at low resolution (256x256), while a fine-grained unit refines the texture and details at the original resolution. This progressive reasoning helps eliminate "ghosting" artifacts where images do not perfectly align at the pixel level.

Experimental Results

The authors evaluated HGFN on three distinct datasets: MCCs (synthetic COCO data), UDIS-D (diverse real-world scenes), and AMIs (Ancient Mural Images, a custom dataset of 5,000 images).

Key findings include:

  • Accuracy: On the UDIS-D dataset, HGFN achieved an average PSNR of 24.60 dB and SSIM of 0.8273, surpassing previous state-of-the-art unsupervised models.
  • Robustness: In tests with drastically reduced image resolution (down to 128x128), HGFN maintained a 99.01% success rate, whereas traditional feature-based methods dropped below 80%.
  • Efficiency: Despite its hierarchical complexity, the model is lightweight with a parameter count of 74.38 MB and a fast testing time of 0.14s for a 512x512 image.

Conclusion

HGFN demonstrates that moving away from single global homographies toward flexible, grid-constrained transformations significantly improves stitching performance in challenging scenarios like mural preservation. By splitting synthesis into coarse and fine stages, the model efficiently handles global structure and local detail. Future work will explore making these models even more lightweight for mobile deployment and extending them to multi-modal stitching for comprehensive cultural heritage preservation.

Summary updated

BibTeX
@article{zhang2025hierarchical,
  author = {Yongqin Zhang and Ruan Bai-yao and Lei Du and Lianjiang Li and Zhan Li and XiaoFeng Wang and Meng Wu and Jinsheng Xiao},
  title = {{Hierarchical grid-constrained fusion network for image stitching}},
  journal = {Journal of King Saud University - Computer and Information Sciences},
  year = {2025},
  doi = {10.1007/s44443-025-00005-6},
}
Figure