Generative Multi-Focus Image Fusion

Xinzhe Xie, Buyu Guo, Bolin Li, Shuangyan He, Yanzhen Gu +2 more
12/25/2025
cs.CV

Official code: Xinzhe99/StackMFF-Series (6 stars, last commit 2026-01-04).

Abstract

Multi-focus image fusion aims to generate an all-in-focus image from a sequence of partially focused input images. Existing fusion algorithms generally assume that, for every spatial location in the scene, there is at least one input image in which that location is in focus. Furthermore, current fusion models often suffer from edge artifacts caused by uncertain focus estimation or hard-selection operations in complex real-world scenarios. To address these limitations, we propose a generative multi-focus image fusion framework, termed GMFF, which operates in two sequential stages. In the first stage, deterministic fusion is implemented using StackMFF V4, the latest version of the StackMFF series, and integrates the available focal plane information to produce an initial fused image. The second stage, generative restoration, is realized through IFControlNet, which leverages the generative capabilities of latent diffusion models to reconstruct content from missing focal planes, restore fine details, and eliminate edge artifacts. Each stage is independently developed and functions seamlessly in a cascaded manner. Extensive experiments demonstrate that GMFF achieves state-of-the-art fusion performance and exhibits significant potential for practical applications, particularly in scenarios involving complex multi-focal content. The implementation is publicly available at https://github.com/Xinzhe99/StackMFF-Series.

View on arXivView PDF

Code Implementations(1)

The official code repositories for the StackMFF Series.

60Nov 19, 20259 months ago

Similar Papers

Cite this paper

@article{xie2025generative,
  title  = {Generative Multi-Focus Image Fusion},
  author = {Xinzhe Xie and Buyu Guo and Bolin Li and Shuangyan He and Yanzhen Gu and Qingyan Jiang and Peiliang Li},
  year   = {2025},
  eprint = {2512.21495},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.21495v1}
}

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/2512.21495.svg)](https://codeofpaper.com/paper/2512.21495)

Discussion