Depth from Defocus via Direct Optimization

Holly Jackson, Caleb Adams, Ignacio Lopez-Francos, Benjamin Recht
2/18/2026
cs.CV

No confident code implementation found for this paper.

Abstract

Though there exists a reasonable forward model for blur based on optical physics, recovering depth from a collection of defocused images remains a computationally challenging optimization problem. In this paper, we show that with contemporary optimization methods and reasonable computing resources, a global optimization approach to depth from defocus is feasible. Our approach rests on alternating minimization. When holding the depth map fixed, the forward model is linear with respect to the all-in-focus image. When holding the all-in-focus image fixed, the depth at each pixel can be computed independently, enabling embarrassingly parallel computation. We show that alternating between convex optimization and parallel grid search can effectively solve the depth-from-defocus problem at higher resolutions than current deep learning methods. We demonstrate our approach on benchmark datasets with synthetic and real defocus blur and show promising results compared to prior approaches. Our code is available at github.com/hollyjackson/dfd.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{jackson2026depth,
  title  = {Depth from Defocus via Direct Optimization},
  author = {Holly Jackson and Caleb Adams and Ignacio Lopez-Francos and Benjamin Recht},
  year   = {2026},
  eprint = {2602.18509},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.18509v2}
}

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

Discussion