Robust Shape from Focus via Multiscale Directional Dilated Laplacian and Recurrent Network

Khurram Ashfaq, Muhammad Tariq Mahmood
12/11/2025
cs.CV

No official code found. Best implementation: khurramashfaq/ddl-gru-sff (0 stars, last commit 2026-02-13).

Abstract

Shape-from-Focus (SFF) is a passive depth estimation technique that infers scene depth by analyzing focus variations in a focal stack. Most recent deep learning-based SFF methods typically operate in two stages: first, they extract focus volumes (a per pixel representation of focus likelihood across the focal stack) using heavy feature encoders; then, they estimate depth via a simple one-step aggregation technique that often introduces artifacts and amplifies noise in the depth map. To address these issues, we propose a hybrid framework. Our method computes multi-scale focus volumes traditionally using handcrafted Directional Dilated Laplacian (DDL) kernels, which capture long-range and directional focus variations to form robust focus volumes. These focus volumes are then fed into a lightweight, multi-scale GRU-based depth extraction module that iteratively refines an initial depth estimate at a lower resolution for computational efficiency. Finally, a learned convex upsampling module within our recurrent network reconstructs high-resolution depth maps while preserving fine scene details and sharp boundaries. Extensive experiments on both synthetic and real-world datasets demonstrate that our approach outperforms state-of-the-art deep learning and traditional methods, achieving superior accuracy and generalization across diverse focal conditions.

View on arXivView PDF

Code Implementations(1)

[IJCV 2026] Robust Shape from Focus via Multiscale Directional Dilated Laplacian and Recurrent Network

00PythonDec 11, 20258 months ago
depth-estimationdepth-from-focusshape-from-focus

Similar Papers

Cite this paper

@article{ashfaq2025robust,
  title  = {Robust Shape from Focus via Multiscale Directional Dilated Laplacian and Recurrent Network},
  author = {Khurram Ashfaq and Muhammad Tariq Mahmood},
  year   = {2025},
  eprint = {2512.10498},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.10498v1}
}

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

Discussion