Abstract
Image stitching aims at stitching the images taken from different viewpoints into an image with a wider field of view. Existing methods warp the target image to the reference image using the estimated warp function, and a homography is one of the most commonly used warping functions. However, when images have large parallax due to non-planar scenes and translational motion of a camera, the homography cannot fully describe the mapping between two images. Existing approaches based on global or local homography estimation are not free from this problem and suffer from undesired artifacts due to parallax. In this paper, instead of relying on the homography-based warp, we propose a novel deep image stitching framework exploiting the pixel-wise warp field to handle the large-parallax problem. The proposed deep image stitching framework consists of two modules: Pixel-wise Warping Module (PWM) and Stitched Image Generating Module (SIGMo). PWM employs an optical flow estimation model to obtain pixel-wise warp of the whole image, and relocates the pixels of the target image with the obtained warp field. SIGMo blends the warped target image and the reference image while eliminating unwanted artifacts such as misalignments, seams, and holes that harm the plausibility of the stitched result. For training and evaluating the proposed framework, we build a large-scale dataset that includes image pairs with corresponding pixel-wise ground truth warp and sample stitched result images. We show that the results of the proposed framework are qualitatively superior to those of the conventional methods, especially when the images have large parallax.
Introduction
Traditional image stitching relies heavily on homographies—mathematical transformations that map one plane to another. This works effectively for flat landscapes or when a camera rotates on a fixed tripod. However, real-world scenes are rarely flat, and handheld cameras often involve translational motion.
When these conditions aren't met, the "parallax problem" arises: objects at different depths appear to shift at different rates. Standard methods, including local homography approaches like APAP, struggle to reconcile these shifts, leading to visible seams, blurred "ghost" objects, or distorted structures. This research breaks away from rigid geometric assumptions by treating stitching as a dense, pixel-to-pixel mapping problem.
Methodology
The proposed framework consists of two primary stages: the Pixel-wise Warping Module (PWM) and the Stitched Image Generating Module (SIGMo).
Pixel-wise Warping Module (PWM)
Instead of calculating a single transformation matrix, PWM uses a deep optical flow architecture (specifically RAFT) to estimate a unique 2D displacement vector for every pixel. This allows the model to "bend" the target image precisely around complex 3D objects. To handle non-overlapping regions, a weighted loss function ($\alpha$ regularization) provides guidance to keep the warp plausible without overfitting.
Stitched Image Generating Module (SIGMo)
Warping pixels individually often leaves "holes" (empty pixels) in the resulting image. SIGMo is a Siamese encoder-decoder network designed to blend the reference and warped images. It utilizes a hole-aware reconstruction loss to preserve valid pixels while intelligently inpainting gaps and smoothing seams using an adversarial (GAN-style) loss.
Datasets and Evaluation
A major hurdle in deep image stitching is the lack of ground truth. To solve this, the authors built a large-scale synthetic dataset using a photo-realistic virtual environment, consisting of 4,098 training pairs and 919 test pairs. Because the images are rendered in a 3D engine, the researchers have access to exact pixel-wise ground truth warp and perfect stitched results. The model was also evaluated on the real-world UDIS dataset to demonstrate generalization.
Key Insights and Results
The core innovation is treating stitching as a dense correspondence problem rather than a geometric one. By leveraging modern optical flow models, the system handles depth discontinuities that typically break homography-based methods.
A critical component is the NOV (Non-Overlapping) Regularization. Estimating warps for regions that don't overlap is ill-posed. The authors found that applying a lighter supervision weight ($\alpha = 0.3$) to these regions prevents distorted "hallucinations" while still maintaining structural continuity.
Quantitatively, on the synthetic dataset, the proposed method achieved a PSNR of 23.58, significantly higher than the 19.43 achieved by the leading deep homography method (UDIS). Qualitatively, visual comparisons show that while other methods create "double images" or bent architectural lines, this pixel-wise approach maintains sharp edges and correct perspective even in high-parallax scenarios.
Conclusion
While the results are impressive, the authors note that pixel-wise warping and deep blending are computationally expensive, currently limiting the model to lower resolutions (e.g., 256x256). Large occlusions also remain a challenge. Future work will focus on improving the network's receptive field and optimizing memory usage to bring pixel-wise precision to high-resolution panoramic photography.
Summary updated