Robust Image Stitching with Optimal Plane

Lang Nie, Yuan Mei, Kang Liao, Yunqiu Xu, Chunyu Lin, Bin Xiao

Abstract

We present RopStitch, an unsupervised deep image stitching framework with both robustness and naturalness. To ensure the robustness of RopStitch, we propose to incorporate the universal prior of content perception into the image stitching model by a dual-branch architecture. It separately captures coarse and fine features and integrates them to achieve highly generalizable performance across diverse unseen real-world scenes. Concretely, the dual-branch model consists of a pretrained branch to capture semantically invariant representations and a learnable branch to extract fine-grained discriminative features, which are then merged into a whole by a controllable factor at the correlation level. Besides, considering that content alignment and structural preservation are often contradictory to each other, we propose a concept of virtual optimal planes to relieve this conflict. To this end, we model this problem as a process of estimating homography decomposition coefficients, and design an iterative coefficient predictor and minimal semantic distortion constraint to identify the optimal plane. This scheme is finally incorporated into RopStitch by warping both views onto the optimal plane bidirectionally. Extensive experiments across various datasets demonstrate that RopStitch significantly outperforms existing methods, particularly in scene robustness and content naturalness.

Introduction

Image stitching aims to combine multiple limited Field-of-View (FoV) images into a single wide-FoV panorama. While traditional methods rely on hand-crafted features that often fail in challenging conditions like low texture or lighting, deep learning methods have emerged as a powerful alternative. However, these models frequently suffer from poor generalization due to small training datasets and often introduce severe projective distortions by warping one image entirely into the perspective of another. RopStitch addresses these challenges through a dual-branch feature extraction strategy and a novel bidirectional warping mechanism using a virtual optimal plane.

Methodology

Dual-Branch Architecture

To enhance robustness and prevent overfitting, RopStitch employs a Siamese backbone with two distinct branches. A frozen branch, pretrained on large-scale datasets like ImageNet (e.g., using ResNet18 or DINOv2), extracts robust, semantically invariant features that serve as universal priors. Simultaneously, a learnable branch captures fine-grained, task-specific features. These features are fused at the correlation volume level using a randomized controllable factor $\sigma \in [0,1]$. This correlation-wise aggregation forces the model to learn robust matching capabilities rather than relying solely on domain-specific features.

Virtual Optimal Plane and Bidirectional Warping

Standard stitching methods typically warp a target image to a reference image's plane, which places a heavy "warping burden" on a single view, leading to unnatural stretching. RopStitch instead projects both images onto a virtual, intermediate optimal plane.

Comparison of the UDIS++ pipeline (a) and the proposed RopStitch pipeline (b). RopStitch utilizes a dual-branch architecture and projects images onto a virtual optimal plane to minimize structural distortion.

The optimal plane is identified using an iterative coefficient generator guided by a Minimal Semantic Distortion constraint. This constraint penalizes transformations that deviate from basic similarity (rotation and uniform scaling), ensuring that the resulting panorama maintains natural proportions and structural integrity. By redistributing the warping burden bidirectionally, RopStitch minimizes background gaps and projective artifacts.

Experimental Results

RopStitch was evaluated on the UDIS-D dataset and several classic image stitching datasets for zero-shot generalization.

  • In-Domain Performance: On the UDIS-D test set, RopStitch achieves state-of-the-art results with an average mPSNR of 24.70 and mSSIM of 0.800.
  • Zero-Shot Generalization: In unseen real-world scenarios, RopStitch significantly outperforms existing deep learning methods like UDIS++, achieving an average zero-shot mPSNR of 18.44. With test-time iterative adaptation, this performance further improves to 19.74 mPSNR.
  • Efficiency: The framework is highly efficient, with an average inference time of 39ms per image pair on an RTX 4090D GPU, making it suitable for real-time applications.

Conclusion

RopStitch successfully combines the robustness of pretrained semantic priors with a novel bidirectional warping strategy to produce high-quality, natural-looking panoramas. By optimizing for an intermediate virtual plane, the model effectively balances the trade-off between content alignment and structural preservation, setting a new benchmark for unsupervised deep image stitching.

Summary updated

BibTeX
@misc{nie2025robust,
  author = {Lang Nie and Yuan Mei and Kang Liao and Yunqiu Xu and Chunyu Lin and Bin Xiao},
  title = {{Robust Image Stitching with Optimal Plane}},
  year = {2025},
  eprint = {2508.05903},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.05903},
}
Figure