Focus Depth Anything: Towards Robust Depth from Focus in the Wild

IF 10.3 2区 计算机科学 Q1 COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE
Jiangfeng Zhang, Yuhua Qian, Tao Yan, Shen Hu, Yayu Zhang, Jinwen Liu
{"title":"Focus Depth Anything: Towards Robust Depth from Focus in the Wild","authors":"Jiangfeng Zhang, Yuhua Qian, Tao Yan, Shen Hu, Yayu Zhang, Jinwen Liu","doi":"10.1007/s11263-026-03006-8","DOIUrl":null,"url":null,"abstract":"Depth from Focus (DfF) estimates scene depth from multi-focus images. However, continuous depth is observed only through discrete focus responses, yielding an ill-posed inverse problem with multiple plausible solutions. Existing DfF methods mainly improve the accuracy of focus measurements, yet rarely address the discretization-induced ambiguity when mapping local focus responses back to continuous depth, which limits robustness in the wild. Therefore, we introduce Focus Depth Anything (FDA), a Bayesian-inspired posterior-refinement framework. Specifically, FDA treats a pretrained depth estimation foundation model as a strong depth prior and leverages multi-focus consistency as physics-grounded cues to locally correct this prior, thereby suppressing spurious solutions that fit the discrete focus cues equally well. To make the posterior correction sensitive to subtle focus variations, we propose the Semantic–Focus Disentanglement (SFD) module, which disentangles focus and semantic representations and produces multi-focus consistency residuals. Moreover, to reinforce the coupling between the depth prior and focus responses, we develop a physically based Point Spread Function (PSF) simulator that generates large-scale multi-focus images to effectively support model learning. Extensive experiments demonstrate that FDA achieves robust depth estimation in the wild, consistently outperforming existing DfF methods. The code and dataset are available at <ext-link ext-link-type=\"uri\" xlink:href=\"https://github.com/jiangfeng-Z/Focus-Depth-Anything\">https://github.com/jiangfeng-Z/Focus-Depth-Anything</ext-link>.","PeriodicalId":13752,"journal":{"name":"International Journal of Computer Vision","volume":"26 1","pages":""},"PeriodicalIF":10.3000,"publicationDate":"2026-09-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Journal of Computer Vision","FirstCategoryId":"94","ListUrlMain":"https://doi.org/10.1007/s11263-026-03006-8","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE","Score":null,"Total":0}
引用次数: 0

Abstract

Depth from Focus (DfF) estimates scene depth from multi-focus images. However, continuous depth is observed only through discrete focus responses, yielding an ill-posed inverse problem with multiple plausible solutions. Existing DfF methods mainly improve the accuracy of focus measurements, yet rarely address the discretization-induced ambiguity when mapping local focus responses back to continuous depth, which limits robustness in the wild. Therefore, we introduce Focus Depth Anything (FDA), a Bayesian-inspired posterior-refinement framework. Specifically, FDA treats a pretrained depth estimation foundation model as a strong depth prior and leverages multi-focus consistency as physics-grounded cues to locally correct this prior, thereby suppressing spurious solutions that fit the discrete focus cues equally well. To make the posterior correction sensitive to subtle focus variations, we propose the Semantic–Focus Disentanglement (SFD) module, which disentangles focus and semantic representations and produces multi-focus consistency residuals. Moreover, to reinforce the coupling between the depth prior and focus responses, we develop a physically based Point Spread Function (PSF) simulator that generates large-scale multi-focus images to effectively support model learning. Extensive experiments demonstrate that FDA achieves robust depth estimation in the wild, consistently outperforming existing DfF methods. The code and dataset are available at https://github.com/jiangfeng-Z/Focus-Depth-Anything.
对焦深度:在野外的对焦深度
焦点深度(DfF)从多焦点图像中估计场景深度。然而,连续深度只能通过离散焦点响应来观察,从而产生具有多个合理解的不适定逆问题。现有的DfF方法主要提高了焦点测量的精度,但很少解决在将局部焦点响应映射回连续深度时离散化引起的模糊问题,这限制了野外的鲁棒性。因此,我们引入了Focus Depth Anything (FDA),这是一个贝叶斯启发的后验优化框架。具体而言,FDA将预训练的深度估计基础模型视为强深度先验,并利用多焦点一致性作为基于物理的线索来局部纠正该先验,从而抑制同样适合离散焦点线索的虚假解决方案。为了使后验校正对细微的焦点变化敏感,我们提出了语义焦点解纠缠(SFD)模块,该模块将焦点和语义表示解纠缠并产生多焦点一致性残差。此外,为了加强深度先验和焦点响应之间的耦合,我们开发了一个基于物理的点扩散函数(PSF)模拟器,该模拟器可以生成大规模的多焦点图像,以有效地支持模型学习。大量的实验表明,FDA在野外实现了鲁棒深度估计,始终优于现有的DfF方法。代码和数据集可从https://github.com/jiangfeng-Z/Focus-Depth-Anything获得。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
International Journal of Computer Vision
International Journal of Computer Vision 工程技术-计算机:人工智能
CiteScore
29.80
自引率
2.10%
发文量
163
审稿时长
6 months
期刊介绍: The International Journal of Computer Vision (IJCV) serves as a platform for sharing new research findings in the rapidly growing field of computer vision. It publishes 12 issues annually and presents high-quality, original contributions to the science and engineering of computer vision. The journal encompasses various types of articles to cater to different research outputs. Regular articles, which span up to 25 journal pages, focus on significant technical advancements that are of broad interest to the field. These articles showcase substantial progress in computer vision. Short articles, limited to 10 pages, offer a swift publication path for novel research outcomes. They provide a quicker means for sharing new findings with the computer vision community. Survey articles, comprising up to 30 pages, offer critical evaluations of the current state of the art in computer vision or offer tutorial presentations of relevant topics. These articles provide comprehensive and insightful overviews of specific subject areas. In addition to technical articles, the journal also includes book reviews, position papers, and editorials by prominent scientific figures. These contributions serve to complement the technical content and provide valuable perspectives. The journal encourages authors to include supplementary material online, such as images, video sequences, data sets, and software. This additional material enhances the understanding and reproducibility of the published research. Overall, the International Journal of Computer Vision is a comprehensive publication that caters to researchers in this rapidly growing field. It covers a range of article types, offers additional online resources, and facilitates the dissemination of impactful research.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书