Learning to Autofocus
Charles Herrmann, Richard Strong Bowen, Neal Wadhwa, Rahul Garg, Qiurui He, Jonathan T. Barron, Ramin Zabih
Abstract
Autofocus is an important task for digital cameras, yet current approaches often exhibit poor performance. We propose a learning-based approach to this problem, and provide a realistic dataset of sufficient size for effective learning. Our dataset is labeled with per-pixel depths obtained from multi-view stereo, following [9] . Using this dataset, we apply modern deep classification models and an ordinal regression loss to obtain an efficient learningbased autofocus technique. We demonstrate that our approach provides a significant improvement compared with previous learned and non-learned methods: our model reduces the mean absolute error by a factor of 3.6 over the best comparable baseline algorithm. Our dataset and code are publicly available.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers12
- Defocus Map Estimation and Deblurring from a Single Dual-Pixel ImageShumian Xin, Neal Wadhwa, Tianfan Xue, Jonathan T. Barron et al.ICCV 2021 · 47 citations
- Bridging Unsupervised and Supervised Depth from Focus via All-in-Focus SupervisionNing-Hsu Wang, Ren Wang, Yu-Lun Liu, Yu-Hao Huang et al.ICCV 2021 · 44 citations
- Autofocus for Event CamerasShijie Lin, Yinqiang Zhang, Lei Yu, Bin Zhou et al.CVPR 2022 · 14 citations
- Learning Single Image Defocus Deblurring with Misaligned Training PairsYu Li, Dongwei Ren, Xinya Shu, Wangmeng ZuoAAAI 2023 · 12 citations
- Exploring Positional Characteristics of Dual-Pixel Data for Camera AutofocusMyungsub Choi, Hana Lee, Hyong-Euk LeeICCV 2023 · 9 citations
Builds on1
Related papers
- Stabilizing and Accelerating Autofocus with Expert Trajectory Regularized Deep Reinforcement LearningShouhang Zhu, Chenglin Li, Yuankun Jiang, Li Wei et al.CVPR 2025
- Optical Model-Driven Sharpness Mapping for Autofocus in Small Depth-of-Field and Severe Defocus ScenariosChen-Liang Fan, Mingpei Cao, Chih Chien Hung, Yuesheng ZhuICCV 2025 · 1 citation
- Normal Assisted Stereo Depth EstimationUday Kusupati, Shuo Cheng, Rui Chen, Hao SuCVPR 2020
- Rethinking Depth Estimation for Multi-View Stereo: A Unified RepresentationRui Peng, Rongjie Wang, Zhenyu Wang, Yawen Lai et al.CVPR 2022 · 159 citations
- Attention-Aware Multi-View StereoKeyang Luo, Tao Guan, Lili Ju, Yuesong Wang et al.CVPR 2020
