Learning Depth from Focus in the Wild

Changyeon Won, Hae-Gon Jeon
7/20/2022
cs.CV

Official code: wcy199705/DfFintheWild (45 stars, Python, MIT, last commit 2023-07-06).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

[ECCV2022] Official implementation of 'Learning Depth from Focus in the Wild'

454PythonJul 15, 20223 years agoMIT
computer-visiondeep-neural-networksdepth-from-focuseccv2022

Similar Papers

Cite this paper

@article{won2022learning,
  title  = {Learning Depth from Focus in the Wild},
  author = {Changyeon Won and Hae-Gon Jeon},
  year   = {2022},
  eprint = {2207.09658},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2207.09658}
}

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

Discussion