Addressing the Depth-of-Field Constraint: A New Paradigm for High Resolution Multi-Focus Image Fusion
Luca Piano, Peng Huanwen, Radu Ciprian Bilcu
TL;DR
DOF constraints challenge all-in-focus imaging, and current MFIF methods suffer from data scarcity and domain gaps between synthetic and real data. The authors propose VAEEDOF, a two-stage system using a frozen 16-channel VAE distilled from StableDiffusion3 and a Fusion Module capable of fusing up to $7$ inputs, augmented by MattingMFIF, a 4K Blender-generated dataset for realistic training. The approach achieves state-of-the-art, artifact-free fused images and demonstrates strong generalization to real-world data with efficient inference, addressing both data scarcity and domain shift. This work advances high-resolution MFIF, with practical impact across photography, microscopy, and surveillance where reliable all-in-focus imagery is valuable, while acknowledging ethical considerations related to high-fidelity image synthesis.
Abstract
Multi-focus image fusion (MFIF) addresses the depth-of-field (DOF) limitations of optical lenses, where only objects within a specific range appear sharp. Although traditional and deep learning methods have advanced the field, challenges persist, including limited training data, domain gaps from synthetic datasets, and difficulties with regions lacking information. We propose VAEEDOF, a novel MFIF method that uses a distilled variational autoencoder for high-fidelity, efficient image reconstruction. Our fusion module processes up to seven images simultaneously, enabling robust fusion across diverse focus points. To address data scarcity, we introduce MattingMFIF, a new syntetic 4K dataset, simulating realistic DOF effects from real photographs. Our method achieves state-of-the-art results, generating seamless artifact-free fused images and bridging the gap between synthetic and real-world scenarios, offering a significant step forward in addressing complex MFIF challenges. The code, and weights are available here:
