Learning Depth from Focus in the Wild
Not on the map. Why?
Abstract (arXiv)
For better photography, most recent commercial cameras including smartphones have either adopted large-aperture lens to collect more light or used a burst mode to take multiple images within short times. These interesting features lead us to examine depth from focus/defocus. In this work, we present a convolutional neural network-based depth estimation from single focal stacks. Our method differs from relevant state-of-the-art works with three unique features. First, our method allows depth maps to be inferred in an end-to-end manner even with image alignment. Second, we propose a sharp region detection module to reduce blur ambiguities in subtle focus changes and weakly texture-less regions. Third, we design an effective downsampling module to ease flows of focal information in feature extractions. In addition, for the generalization of the proposed network, we develop a simulator to realistically reproduce the features of commercial cameras, such as changes in field of view, focal length and principal points. By effectively incorporating these three unique features, our network achieves the top rank in the DDFF 12-Scene benchmark on most metrics. We also demonstrate the effectiveness of the proposed method on various quantitative evaluations and real-world images taken from various off-the-shelf cameras compared with state-of-the-art methods. Our source code is publicly available at https://github.com/wcy199705/DfFintheWild.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 25 of its 42 references that are in the map. First posted on arXiv 20 Jul 2022.
Builds on
25 of 42 references.
References · 25
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2016Pyramid Scene Parsing Networkcited by 2,472
- 2015A Large Dataset to Train Convolutional Networks for Disparity, Optical Flow, and Scene Flow Estimationcited by 878
- 2016Unsupervised Monocular Depth Estimation with Left-Right Consistencycited by 819
- 2018Deep Ordinal Regression Network for Monocular Depth Estimationcited by 721
- 2018Pyramid Stereo Matching Networkcited by 486
- 2019Cascade Cost Volume for High-Resolution Multi-View Stereo and Stereo Matchingcited by 414
- 2020Single-View View Synthesis with Multiplane Imagescited by 263
- 2021CFNet: Cascade and Fused Cost Volume for Robust Stereo Matchingcited by 153
- 2020Defocus Deblurring Using Dual-Pixel Datacited by 138
- 2019DPSNet: End-to-end Deep Plane Sweep Stereocited by 115
13 more
- 2018Synthetic Depth-of-Field with a Single-Camera Mobile Phonecited by 70
- 2019DDFlow: Learning Optical Flow with Unlabeled Data Distillationcited by 63
- 2019Learning Single Camera Depth Estimation using Dual-Pixelscited by 49
- 2020Single Image Depth Estimation Trained via Depth from Defocus Cuescited by 45
- 2020Focus on defocus: bridging the synthetic to real domain gap for depth estimationcited by 37
- 2020Dual Pixel Exploration: Simultaneous Depth Estimation and Image Restorationcited by 34
- 2017Deep Depth From Focuscited by 28
- 2020Learning to Autofocuscited by 26
- 2021Defocus Map Estimation and Deblurring from a Single Dual-Pixel Imagecited by 25
- 2020Du2Net: Learning Depth Estimation from Dual-Cameras and Dual-Pixelscited by 23
- 2021Bridging Unsupervised and Supervised Depth from Focus via All-in-Focus Supervisioncited by 23
- 2017Aperture Supervision for Monocular Depth Estimationcited by 21
- 2014Variational Depth from Focus Reconstructioncited by 15
Built on by
Citing papers per year: 2023: 1; 2024: 3; 2025: 3; 2026: 1.
8 papers.
- 2023Aberration-Aware Depth-from-Focuscited by 12
- 2024Sharp-NeRF: Grid-based Fast Deblurring Neural Radiance Fields Using Sharpness Priorcited by 12
- 2024Cinematic Gaussians: Real-Time HDR Radiance Fields with Depth of Fieldcited by 12
- 2024HybridDepth: Robust Metric Depth Fusion by Leveraging Depth from Focus and Single-Image Priorscited by 11
- 2025Repurposing Marigold for Zero-Shot Metric Depth Estimation via Defocus Blur Cuescited by 3
- 2025Robust Shape from Focus via Multiscale Directional Dilated Laplacian and Recurrent Networkcited by 1
- 2025Generative Multi-Focus Image Fusioncited by 0
- 2026Towards Minimal Focal Stack in Shape from Focuscited by 0
- 2026Towards Minimal Focal Stack in Shape from Focus2 Apr 2026
- 2025Generative Multi-Focus Image Fusion25 Dec 2025
- 2025Robust Shape from Focus via Multiscale Directional Dilated Laplacian and Recurrent Network11 Dec 2025
- 2025Repurposing Marigold for Zero-Shot Metric Depth Estimation via Defocus Blur Cues23 May 2025
- 2024HybridDepth: Robust Metric Depth Fusion by Leveraging Depth from Focus and Single-Image Priors26 Jul 2024
- 2024Cinematic Gaussians: Real-Time HDR Radiance Fields with Depth of Field11 Jun 2024
- 2024Sharp-NeRF: Grid-based Fast Deblurring Neural Radiance Fields Using Sharpness Prior1 Jan 2024
- 2023Aberration-Aware Depth-from-Focus8 Mar 2023