Abstract
In this paper, we retarget video stitching to an emerging issue, named warping shake, when extending image stitching to video stitching. It unveils the temporal instability of warped content in non-overlapping regions, despite image stitching having endeavored to preserve the natural structures. Therefore, in most cases, even if the input videos to be stitched are stable, the stitched video will inevitably cause undesired warping shakes and affect the visual experience. To eliminate the shakes, we propose StabStitch to simultaneously realize video stitching and video stabilization in a unified unsupervised learning framework. Starting from the camera paths in video stabilization, we first derive the expression of stitching trajectories in video stitching by elaborately integrating spatial and temporal warps. Then a warp smoothing model is presented to optimize them with a comprehensive consideration regarding content alignment, trajectory smoothness, spatial consistency, and online collaboration. To establish an evaluation benchmark and train the learning framework, we build a video stitching dataset with a rich diversity in camera motions and scenes. Compared with existing stitching solutions, StabStitch exhibits significant superiority in scene robustness and inference speed in addition to stitching and stabilization performance, contributing to a robust and real-time online video stitching system.
Introduction: The Challenge of Warping Shake
Traditional image stitching focuses on aligning overlapping regions between static images. However, extending these techniques to video introduces a critical artifact: warping shake. Even when input videos are stable, the non-linear warps required for alignment can vary inconsistently across frames. This inconsistency manifests as high-frequency jitter in non-overlapping regions, severely degrading the visual quality of the panoramic output.
Existing solutions often treat stitching and stabilization as separate, sequential tasks, often relying on slow, offline optimization. This makes them unsuitable for real-time applications like live VR broadcasting or autonomous navigation.
Methodology: The StabStitch Framework
StabStitch addresses warping shake through a unified unsupervised learning framework that jointly optimizes for alignment and stability.
Spatial and Temporal Warping
The system utilizes two lightweight convolutional networks:
- Spatial Warp (SNet): Estimates the homography or mesh-based motion between different camera views.
- Temporal Warp (TNet): Estimates the motion between consecutive frames within a single video stream.
Stitching Trajectory Generation
By integrating the outputs of SNet and TNet, the framework derives "Stitch-Meshflow" trajectories. These trajectories represent the path of mesh control points required to maintain both spatial alignment and temporal continuity.
Warp Smoothing (SmoothNet)
The core of StabStitch is SmoothNet, which optimizes the generated trajectories. It balances four objectives:
- Data Fidelity: Ensuring the warped frames remain accurately aligned.
- Smoothness: Eliminating the high-frequency jitter (warping shake).
- Spatial Consistency: Preventing geometric distortions by ensuring neighboring mesh cells move coherently.
- Online Collaboration: Utilizing a sliding window approach to maintain stability across temporal segments with minimal latency.
Dataset and Evaluation
To support this research, the authors introduced StabStitch-D, a large-scale dataset featuring over 100 video pairs (100,000+ images). The dataset covers diverse scenarios, including low-texture environments, low-light conditions, and fast-moving scenes, providing a robust benchmark for video stitching.
Key Results
- Efficiency: StabStitch achieves real-time performance, processing frames in approximately 28.2ms. This is orders of magnitude faster than traditional offline optimization methods.
- Stability: Quantitative analysis demonstrates that StabStitch significantly reduces trajectory jitter while maintaining high alignment accuracy (measured via PSNR and SSIM).
- User Experience: User studies confirm a strong preference for StabStitch, as it provides a much smoother viewing experience compared to standard stitching methods that suffer from warping shakes.
Conclusion
StabStitch represents a significant advancement in video stitching by identifying and solving the warping shake phenomenon. By stabilizing the warping functions themselves within an unsupervised, online framework, it enables the creation of high-quality, stable panoramic videos in real-time.
Summary updated