Image Stitching in Adverse Condition: A Bidirectional-Consistency Learning Framework and Benchmark

Zengxi Zhang, Junchen Ge, Zhiying Jiang, Miao Zhang, Jinyuan LiuNeurIPS 2025

Image stitching is a cornerstone of modern computer vision, powering everything from smartphone 360° panoramas to the visual systems of autonomous drones and VR headsets. But there’s a catch: most current algorithms assume a perfect world. When introduced to heavy fog, low-light noise, or the murky depths of underwater photography, standard stitching methods often fall apart, leaving behind blurry messes, misaligned seams, or "ghost" images.

A new paper introduces ACDIS (Adverse Condition-tolerant Image Stitching), a deep learning framework designed to handle the world at its messiest. By treating image restoration and alignment as a single, iterative loop and introducing a new benchmark dataset, the authors have set a new standard for stitching in environments where traditional methods fail.

The Challenge of Adverse Conditions

Traditional image stitching relies on finding matching "keypoints" (like corners or edges) between two photos. In adverse conditions—think a dark alley, a hazy morning, or an underwater reef—these keypoints are either obscured by noise or distorted by the environment.

Furthermore, most existing pipelines treat restoration (cleaning up the image) and stitching (joining them) as two separate, sequential steps. The authors argue this is a fundamental flaw: if the restoration is slightly off, the alignment fails; if the alignment is off, the final composite looks unnatural. Finally, there is the "ghosting" problem—when an object moves between the time the first and second photos are taken, it appears twice in the final result.

Comparison of alignment strategies and the ASIS dataset

The ACDIS Framework

To tackle these issues, the ACDIS framework introduces three core innovations that tightly couple the restoration and alignment processes:

The ACDIS framework architecture
  1. Bidirectional-Consistency Learning Framework (BCLF): Instead of restoring the image then stitching it, ACDIS embeds a Differentiable Image Restoration (DIR) module directly into the alignment process. As the network iteratively refines the alignment, it uses the overlapping regions to "harmonize" the restoration, ensuring both images look consistent in color and texture. Alignment provides a spatial constraint that helps restoration, while restoration provides the visual clarity needed for alignment.
  2. Recursive Parameterized Homography Estimation (RPHE): Standard models try to predict a single "best" displacement for pixels. RPHE instead models displacement as a Gaussian distribution (predicting both a mean and a variance). This allows the model to express "uncertainty" in blurry or textureless regions, preventing the overconfident errors that lead to jagged seams.
  3. Motion-Tolerant Seamless Composition (MSC): To solve the ghosting problem, the authors introduced a motion-tolerant composition network. It uses a specialized "motion loss" and motion masks to detect objects that have moved between frames, adaptively ignoring them to produce a clean, single-subject result.

The ASIS Dataset: A New Benchmark

The researchers identified a major gap in the field: there were no high-quality datasets for stitching in bad weather. To fix this, they released the Adverse Scene Image Stitching (ASIS) dataset.

  • Scale: 2,250 image pairs.
  • Diversity: 750 pairs each for low-light, haze, and underwater environments.
  • Complexity: Covers 17 different scenes (caves, wrecks, fields, etc.) with wide parallax, making it significantly more challenging than existing "clean" datasets.

Key Results and Insights

The ACDIS framework was tested against state-of-the-art methods and demonstrated significant improvements:

  • Quantitative Superiority: ACDIS consistently achieved the highest PSNR (signal-to-noise ratio) and SSIM (structural similarity) across all three adverse categories.
  • Visual Quality: In haze and low-light tests, ACDIS was the only method that successfully eliminated visible seams while simultaneously restoring natural colors and sharp details.
  • Efficiency: Despite the iterative process, the restoration module is incredibly lightweight (only 0.07 GFlops), meaning the added robustness doesn't come at the cost of massive computational overhead.
  • Physical Priors Matter: Unlike purely "black box" deep learning models, the DIR module uses physical imaging models to guide the restoration, ensuring the geometry of the scene remains intact.

Limitations and Future Work

While ACDIS is a significant leap forward, the authors note a few hurdles. The motion constraint works well for small-range movements (like a pedestrian walking). However, if an object moves a massive distance across the frame, the network may still struggle to recognize it as the same object, potentially leading to duplicate appearances. Future work could involve integrating generative models (like GANs or Diffusion) to "fill in" backgrounds that are occluded by moving objects, creating even more seamless compositions.

Check out the code and benchmark: https://github.com/ZengxiZhang/ACDIS

Summary updated

BibTeX
@inproceedings{zhang2025image,
  author = {Zengxi Zhang and Junchen Ge and Zhiying Jiang and Miao Zhang and Jinyuan Liu},
  title = {{Image Stitching in Adverse Condition: A Bidirectional-Consistency Learning Framework and Benchmark}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=l1n22nHG4A},
}
Figure