Modification Takes Courage: Seamless Image Stitching via Reference-Driven Inpainting

Ziqi Xie, Xiao Lai, Weidong Zhao, Xianhui Liu, Wenlong HouarXiv 2024 · DOI

Abstract

Image stitching aims to combine multiple overlapping images into a single, wide-angle panorama. Despite advancements, traditional methods struggle with "boss-level" challenges: uneven hue and large parallax. RDIStitcher (Reference-Driven Inpainting Stitcher) reformulates this problem as a generative inpainting task. By adopting a "courageous" approach—modifying larger areas with higher intensity—and utilizing a novel self-supervised training pipeline, RDIStitcher effectively eliminates visible seams and structural artifacts, outperforming existing state-of-the-art methods.

Introduction: The Limits of Conservatism

Traditional image stitching often fails in complex scenarios. Uneven Hue, caused by varying camera settings or lighting, creates jarring color boundaries. Large Parallax, resulting from depth differences between shots, leads to "ghosting" or broken structures.

Existing solutions are typically conservative, attempting to find a perfect "seam line" or applying subtle pixel-level smoothing. However, these methods often leave behind noticeable artifacts in challenging scenes. The authors of RDIStitcher argue that achieving a truly seamless result requires the "courage" to modify more of the image content to ensure global consistency.

Comparison of RDIStitcher against state-of-the-art methods, highlighting the 'courageous' modification area and intensity required for seamless results.

Methodology: Reference-Driven Inpainting

RDIStitcher treats stitching as a reference-driven inpainting problem, leveraging the generative power of pre-trained diffusion models.

1. Diffusion-Based Inpainting

Instead of traditional blending, the system fine-tunes a pre-trained Text-to-Image (T2I) diffusion model (Stable Diffusion). The model takes aligned images and "fills in" transition zones by synthesizing content based on the surrounding context and reference images.

2. "Modification Takes Courage"

Unlike previous inpainting-based stitchers that modified only minimal pixels, RDIStitcher utilizes a larger modification area and higher modification intensity. This allows the model to rewrite pixels to resolve significant hue mismatches and structural misalignments that conservative methods cannot address.

3. Self-Supervised Training and LoRA

To overcome the lack of "ground truth" panoramas, the authors developed a self-supervised pipeline. They take a single high-quality image and "corrupt" it with random warps, masks, and color jitters to simulate stitching errors. The model is then trained to restore the original image. To maintain efficiency, Low-Rank Adaptation (LoRA) is used to fine-tune only a small fraction of the diffusion model's parameters.

The RDIStitcher pipeline showing (a) the self-supervised training process using ground truth restoration and (b) the inference stage for generating stitched images.

Evaluation: MLLMs as Judges

Traditional metrics like PSNR or SSIM often fail to capture the subjective quality of a panorama. To address this, the researchers pioneered the use of Multimodal Large Language Models (MLLMs), such as Qwen-VL-Max, to act as subjective evaluators. These models provide scores and reasoning regarding seams, distortions, and overall clarity, offering a more human-aligned assessment of "beauty" and "seamlessness."

Key Results

  • Superior Quality: RDIStitcher consistently outperformed state-of-the-art methods like UDIS++ and SRStitcher in both user surveys and MLLM evaluations.
  • Quantitative Performance: On the UDIS-D test set, RDIStitcher achieved a Single-Image Quality Score (SIQS) of 9.54, surpassing the previous best inpainting method (9.28).
  • Structural Consistency: In "zero-shot" experiments on unseen datasets (APAP, REW, SPW), the model demonstrated remarkable robustness, maintaining straight architectural lines where other models produced wavy or broken results.
  • Seamless Transitions: Qualitative analysis shows RDIStitcher is uniquely capable of smoothing harsh sky gradients and accurately connecting thin structures, such as power lines, across parallax gaps.

Conclusion and Future Work

RDIStitcher demonstrates that framing stitching as a restoration task allows generative models to overcome the physical limitations of parallax and lighting. While the model shows immense promise, future work will focus on reducing generative instability—where the model might subtly alter unintended details—and refining prompt sensitivity in MLLM-based evaluation metrics.

Summary updated

BibTeX
@misc{xie2024modification,
  author = {Ziqi Xie and Xiao Lai and Weidong Zhao and Xianhui Liu and Wenlong Hou},
  title = {{Modification Takes Courage: Seamless Image Stitching via Reference-Driven Inpainting}},
  year = {2024},
  eprint = {2411.10309},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.10309},
}
Figure