RecDiffusion: Rectangling for Image Stitching with Diffusion Models

Tianhao Zhou, Haipeng Li, Ziyi Wang, Ao Luo, Chen-Lin Zhang +3 more
2/9/2026

No official code found. Best implementation: lhaippp/RecDiffusion (70 stars, Apache-2.0, last commit 2024-07-10).

Abstract

Image stitching from different captures often results in non-rectangular boundaries, which is often considered un-appealing. To solve non-rectangular boundaries, current solutions involve cropping, which discards image content, inpainting, which can introduce unrelated content, or warping, which can distort non-linear features and introduce artifacts. To overcome these issues, we introduce a novel diffusion-based learning framework, RecDiffusion, for image stitching rectangling. This framework combines Motion Diffusion Models (MDM) to generate motion fields, ef-fectively transitioning from the stitched image's irregular borders to a geometrically corrected intermediary. Fol-lowed by Content Diffusion Models (CDM) for image de-tail refinement. Notably, our sampling process utilizes a weighted map to identify regions needing correction during each iteration of CDM. Our RecDiffusion ensures geomet-ric accuracy and overall visual appeal, surpassing all pre-vious methods in both quantitative and qualitative measures when evaluated on public benchmarks. Code is released at https://github.com/haippp/RecDiffusion.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[CVPR2024]: RecDiffusion: Rectangling for Image Stitching with Diffusion Models

705PythonNov 20, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{zhou2026recdiffusion,
  title  = {RecDiffusion: Rectangling for Image Stitching with Diffusion Models},
  author = {Tianhao Zhou and Haipeng Li and Ziyi Wang and Ao Luo and Chen-Lin Zhang and Jiajun Li and Bing Zeng and Shuaicheng Liu},
  year   = {2026},
  eprint = {2403.19164},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2403.19164},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.19164.svg)](https://codeofpaper.com/paper/2403.19164)

Discussion