Parallax-Tolerant Unsupervised Deep Image Stitching

Lang Nie, Chunyu Lin, Kang Liao, Shuaicheng Liu, Yao Zhao

Abstract

Image stitching in real-world scenarios often fails due to large parallax and low-texture environments. Traditional feature-based methods struggle with featureless regions, while existing deep learning approaches often produce "ghosting" or blurring artifacts in the presence of depth variations. We present UDIS++, a novel unsupervised deep image stitching framework that addresses these challenges through a hybrid warping strategy and a seam-driven composition network. By combining global homography with local Thin-Plate Spline (TPS) transformations and an unsupervised seam-cutting mechanism, UDIS++ achieves state-of-the-art alignment and visual quality across diverse datasets.

Introduction

The goal of image stitching is to create a wide-field-of-view panorama from multiple overlapping images. Despite decades of research, two primary challenges remain: low texture and large parallax.

Traditional methods, such as those based on SIFT or SURF, rely heavily on distinct visual features. In environments like blank walls or dimly lit corridors, these features are scarce, leading to stitching failures. On the other hand, large parallax occurs when objects at different depths shift inconsistently between camera views. Standard homography-based models assume a planar scene, which breaks down in these cases, resulting in "ghosting" (double images) or significant blurring in overlapping regions.

Deep learning has recently been applied to image stitching to overcome the limitations of hand-crafted features. However, many existing deep methods either rely on rigid homographies or attempt to reconstruct pixels directly from features, which often leads to loss of sharpness. UDIS++ introduces a robust, unsupervised framework designed to handle both low-texture and high-parallax scenes effectively.

Methodology

UDIS++ employs a two-stage pipeline: Warping and Composition.

1. Hybrid Warping (H + TPS)

To balance global stability with local flexibility, UDIS++ utilizes a hybrid warping model.

  • Global Alignment: The network first estimates a global homography ($H$) to provide a coarse alignment of the images.
  • Local Refinement: To account for parallax, the model predicts residual motions for a grid of control points using Thin-Plate Spline (TPS) transformations. Unlike mesh-based warps, which are computationally expensive on GPUs due to cell-lookup operations, TPS provides a unified function for all pixels, making it highly efficient for deep learning architectures.
  • Unsupervised Training: The warping network is trained using an unsupervised alignment loss that minimizes pixel intensity differences in overlapping areas, alongside distortion constraints to ensure the warped images remain realistic.

2. Iterative Warp Adaption

A key innovation in UDIS++ is its ability to generalize to unseen camera configurations or resolutions without retraining. During inference, the model can perform a few iterations of "fine-tuning" on a specific image pair. This iterative process optimizes the predicted warp to maximize alignment for that specific instance, typically taking only 0.1 seconds per step.

3. Seam-Driven Composition

After warping, the images must be blended. Traditional reconstruction-based deep methods often produce blurry outputs. UDIS++ instead learns to generate composition masks that implicitly find an optimal "seam"—a path where the visual difference between the two images is minimal. By using a differentiable "soft mask" approach with boundary and smoothness constraints, the network learns to "cut" and blend images in a way that avoids parallax artifacts while maintaining the original image sharpness.

Experiments and Results

The framework was evaluated on the UDIS-D dataset, which contains over 1,100 test samples characterized by significant parallax. It was also tested on traditional benchmarks like Railtrack and Carpark to assess generalization.

Quantitative Performance

UDIS++ demonstrates superior performance across standard metrics. On the UDIS-D dataset, it achieved a PSNR of 30.19 and an SSIM of 0.933 in "easy" cases, outperforming both traditional methods and previous state-of-the-art deep learning models like ELA and the original UDIS.

Visual Quality and Efficiency

Visual results highlight the effectiveness of the seam-driven approach. In scenes with large parallax, such as trees or moving vehicles, UDIS++ successfully eliminates the ghosting and blurring that plague other methods. In low-texture scenarios, the ResNet50-based feature extraction provides the robustness needed to align images where SIFT-based methods fail.

Qualitative comparison of UDIS++ against LPC and UDIS on the UDIS-D dataset. (a) shows a case with large parallax where UDIS++ avoids the ghosting seen in other methods. (b) shows a low-texture case where UDIS++ maintains alignment where traditional-style mesh warps (LPC) fail.

One of the standout features of UDIS++ is its speed. By leveraging the parallelizable nature of TPS transformations, the model can process high-resolution images (e.g., 1500x2000) in approximately 0.731 seconds on a GPU. In contrast, traditional optimization-based methods like LPC can take upwards of 45 minutes on a CPU for similar tasks.

Conclusion

UDIS++ represents a significant advancement in unsupervised deep image stitching. By integrating a flexible TPS-based warping strategy with an unsupervised seam-driven composition network, it effectively handles the dual challenges of large parallax and low texture. While the iterative adaption adds a slight overhead to inference, the overall framework provides a fast, robust, and high-quality solution for generating seamless panoramas in complex real-world environments.

Summary updated

BibTeX
@inproceedings{nie2023parallax,
  author = {Lang Nie and Chunyu Lin and Kang Liao and Shuaicheng Liu and Yao Zhao},
  title = {{Parallax-Tolerant Unsupervised Deep Image Stitching}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  doi = {10.1109/iccv51070.2023.00680},
}
Figure