All models

StackMFF

3D convolutional network that fuses a whole multi-focus image stack into one all-in-focus image.

121 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (54 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
6.1M
Operations
121
Framework
PyTorch
Recurrent
No
Published
2024, Applied Intelligence
Cited by
16 (as of 3 November 2026)
Authors
Xinzhe Xie, Qingyan Jiang, Dong Chen and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m20592
Graph hash
7fbe7d6c893dffb437298077c7e948a567d102285da0c802410dca7d8139db51
Skeleton hash
2159ec94abbee5e8f30f74eacc3a6f5abf5b7bbd53804d15dbce0d6a5b4db838
Architecture hash
b09dc96c4c8d18a8bd99e436fbc8cee42ba15e29677e1cdd51b0ee4abb95c6ee
Diagram SHA-256
959c8067aeb1476b53e249ddd43c2fd12dca1c45d37b5f1f86a7afafcf78d6d9
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

StackMFF fuses a multi-focus image stack, a set of images taken at different focal planes, into a single fully clear image. Existing end-to-end multi-focus fusion networks work on image pairs, so a stack has to be fused iteratively, and the paper argues that the resulting error accumulation degrades the image. StackMFF instead uses 3D convolutional neural networks to model and fuse the entire stack in an end-to-end manner.

The encoder adopts Unet3D. The paper adds the 3D Coordinate Adaptive Enhancement Module (3DCAEM), inspired by Coordinate Attention. It embeds positional information from all three axes into the channel attention. The decoder then takes the maximum along the depth dimension, on the assumption that the features at this stage implicitly represent image sharpness. That step is also what allows the network to handle image stacks of varying depths. A 2D convolution layer and a Sigmoid activation then output the fused image.

Training data is synthesized: a refocusing pipeline based on monocular depth estimation turns any all-in-focus image into a multi-focus image stack. The paper reports processing times from 0.15 seconds for the 4D-Light-Field dataset to 0.24 seconds for FlyingThings3D. The repository notes that its code was reorganized and has subtle differences from the original implementation described in the paper.

Key idea. StackMFF uses 3D convolutional neural networks to model and fuse an entire multi-focus image stack in an end-to-end manner.

  • StackMFF
  • multi-focus image stack fusion
  • multi-focus image fusion
  • focus stacking
  • focal stack fusion
  • all-in-focus image
  • 3D CNN
  • 3DCAEM
  • image fusion

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@article{Xie_2025, title={StackMFF: end-to-end multi-focus image stack fusion network}, volume={55}, ISSN={1573-7497}, url={http://dx.doi.org/10.1007/s10489-025-06383-8}, DOI={10.1007/s10489-025-06383-8}, number={7}, journal={Applied Intelligence}, publisher={Springer Science and Business Media LLC}, author={Xie, Xinzhe and Qingyan, Jiang and Chen, Dong and Guo, Buyu and Li, Peiliang and Zhou, Sangjun}, year={2025}, month=Mar }