AnyStitch merges many photos into seamless wide panoramas with large parallax
AnyStitch: Generative Large Parallax Image Stitching
Computer Vision and Pattern Recognition
Summary
Creating wide landscape photos by stitching pictures taken from different spots is hard because objects look shifted and warped. Traditional methods can only handle small shifts because they use flat image changes. The authors developed AnyStitch, a new approach that uses a smart image generation model to combine many pictures with big shifts into smooth panoramas. They trained their model with special 3D data so it learns the actual spatial layout, enabling it to stitch images realistically at different sizes and views.
What this means in practice
- •For virtual reality developers: Produce wide, immersive panoramic views from many photos taken with large camera movements, enhancing realism in VR environments.
- •For photographers and photo editors: Create seamless panoramic photos from multiple images with complex shifts and depth differences that traditional stitching struggles with.
Authors
Zixuan Chen, Lingen Li, Junhao Zhuang, Ruikang Li, Tianfan Xue
Abstract
Wide field-of-view panorama stitching is important for computational photography and immersive visual applications, but often faces some challenges like severe geometric disparities. The typical "warp-and-blend" stitching technique only works with limited parallax and fails on large-parallax scenes, due to its inherent restriction to 2D geometric transformations that cannot resolve underlying 3D structures. To break this limitation, we present AnyStitch, a generative framework that can merge multiple reference images with large parallax into a seamless panorama. Unlike previous methods, we formulate the stitching problem as a reference-based image generation process, which naturally avoids stitching artifacts. Specifically, we propose a Hierarchical Projected Rotary Positional Encoding (HPRoPE) based on a 3D feed-forward model to establish accurate geometric relationships between the inputs and the panoramic canvas while preserving fidelity. Given that the resolution of the generated image varies with the number of inputs, we design a spatial autoregressive generation strategy to generate visually coherent panoramas at flexible resolutions. Finally, to enable the supervised fine-tuning of the proposed model, we construct a paired dataset utilizing 3D Gaussian Splatting (3DGS) scenes. Experiments demonstrate that AnyStitch can seamlessly stitch a variable number of inputs (like 22 views in teaser) with large camera motion, support flexible control of target view and projection type, and handle simple dynamic scenes. Project page: https://cecret3350.github.io/AnyStitch/.