Unsupervised Deep Image Stitching: Reconstructing Stitched Features to Images

Lang Nie, Chunyu Lin, Kang Liao, Shuaicheng Liu, Yao ZhaoIEEE TIP 2021 · DOI

Abstract

Traditional feature-based image stitching technologies rely heavily on feature detection quality, often failing to stitch images with few features or low resolution. The learning-based image stitching solutions are rarely studied due to the lack of labeled data, making the supervised methods unreliable. To address the above limitations, we propose an unsupervised deep image stitching framework consisting of two stages: unsupervised coarse image alignment and unsupervised image reconstruction. In the first stage, we design an ablation-based loss to constrain an unsupervised homography network, which is more suitable for large-baseline scenes. Moreover, a transformer layer is introduced to warp the input images in the stitching-domain space. In the second stage, motivated by the insight that the misalignments in pixel-level can be eliminated to a certain extent in feature-level, we design an unsupervised image reconstruction network to eliminate the artifacts from features to pixels. Specifically, the reconstruction network can be implemented by a low-resolution deformation branch and a high-resolution refined branch, learning the deformation rules of image stitching and enhancing the resolution simultaneously. To establish an evaluation benchmark and train the learning framework, a comprehensive real-world image dataset for unsupervised deep image stitching is presented and released. Extensive experiments well demonstrate the superiority of our method over other state-of-the-art solutions. Even compared with the supervised solutions, our image stitching quality is still preferred by users.

Introduction: The Data Wall in Image Stitching

Image stitching—the process of combining multiple photos into a wide-angle panorama—traditionally relies on detecting and matching keypoints (like SIFT). However, these methods are fragile, often failing when images have low resolution or sparse textures.

While deep learning offers a potential solution, it faces a significant "data wall": there are no massive, real-world datasets of perfectly stitched "ground truth" images. Consequently, existing deep methods often train on synthetic "no-parallax" data. This approach performs poorly in the real world, where objects at different depths cause "ghosting" or misalignments that simple geometric transformations cannot resolve.

Example of pixel-level misalignments (ghosting) that occur after initial coarse alignment.

Methodology

The proposed framework addresses these challenges through a two-stage unsupervised pipeline.

1. Unsupervised Coarse Alignment

The first stage uses a deep homography network to roughly align the images. To handle large-baseline scenes where images have minimal overlap, we designed an ablation-based loss. Instead of padding missing pixels, the reference image is "ablated" to match the warped target's valid area. This prevents the network from being misled by empty space. Additionally, a Stitching-Domain Transformer layer warps images into the smallest possible bounding rectangle, optimizing GPU memory usage.

2. Unsupervised Image Reconstruction

The core innovation lies in the "feature-to-pixel" reconstruction strategy. We observed that while misalignments are glaring at the pixel level, they are much less noticeable in "feature space."

Overview of the proposed unsupervised deep image stitching framework, showing the transition from coarse alignment to feature-based reconstruction.

The network reconstructs the final image from these features using two parallel branches:

  • Low-Resolution Deformation Branch: Learns the global "rules" of how to warp and blend overlapping areas, benefiting from a large receptive field.
  • High-Resolution Refined Branch: Restores crisp details and textures.

A combination of perceptual content loss, seam loss (for edge continuity), and consistency loss ensures the final output is both geometrically accurate and visually seamless.

Datasets and Evaluation

To train and validate this framework, we introduced a new real-world benchmark dataset containing 10,440 training cases and 1,106 testing cases. Unlike synthetic sets, this collection includes varying overlap rates, high parallax, and diverse environmental conditions such as night, snow, and zooming.

Key Results

Our unsupervised method demonstrates significant robustness and quality:

  • Quantitative Performance: On real-world data, the method achieved a PSNR of 23.80 and SSIM of 0.79, outperforming both traditional methods (like APAP) and supervised deep models (like EPISNet).
  • Robustness to Low Resolution: In tests with 128x128 images, our method maintained a 98.64% success rate. In contrast, traditional SIFT-based methods dropped to approximately 80% due to the lack of detectable keypoints.
  • Qualitative Superiority: User studies indicated a strong preference for our results, specifically citing better illumination blending and the absence of visible seams compared to other state-of-the-art solutions.

Conclusion

By treating stitching as a reconstruction problem from feature maps rather than a pure pixel-warping task, this framework effectively "heals" ghosting artifacts. While the current model relies on a single homography for initial alignment, future work will explore non-linear models and larger receptive fields to handle even more extreme parallax scenarios.

Summary updated

BibTeX
@article{nie2021unsupervised,
  author = {Lang Nie and Chunyu Lin and Kang Liao and Shuaicheng Liu and Yao Zhao},
  title = {{Unsupervised Deep Image Stitching: Reconstructing Stitched Features to Images}},
  journal = {IEEE Trans. Image Process.},
  year = {2021},
  doi = {10.1109/tip.2021.3092828},
}
Figure