NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Fusing Depth from Defocus and Stereo with Coded Apertures

Yuichi Takeda, Shinsaku Hiura, Kosuke SatoCVPR 2013

Abstract

Passive depth sensing typically relies on either stereo vision or depth from defocus (DFD), both of which possess inherent limitations. Stereo vision struggles with repetitive textures and the "aperture problem," while DFD is physically limited by lens size and loses accuracy at a distance. Researchers from Osaka University and Hiroshima City University have developed a hybrid system that fuses these modalities using coded apertures. By employing different focus distances for a stereo camera pair and integrating custom aperture masks, the system achieves robust depth estimation across a wider range of distances and textures, including challenging horizontal patterns.

Introduction

Passive depth sensing—measuring distance without active illumination like lasers—is a cornerstone of computer vision. However, the two primary techniques have distinct "blind spots." Stereo vision calculates depth via disparity between two viewpoints but fails when textures are repetitive or parallel to the camera's baseline. Conversely, Depth from Defocus (DFD) measures image blur; while it is less sensitive to edge direction, its precision degrades significantly for distant objects where blur becomes imperceptible.

This research aims to bridge these gaps, creating a unified system that is robust to texture orientation and maintains accuracy from near to far fields.

Methodology

The proposed system utilizes a standard parallel stereo rig with two critical modifications: different focus planes and coded apertures. The left camera is focused on a near plane, while the right camera is focused on a far plane. Both lenses are equipped with "coded" masks—specifically Zhou’s broadband code—instead of standard circular apertures. These masks create unique, high-frequency blur patterns that are mathematically easier to deconvolve than standard Gaussian-like blur.

The hybrid stereo system utilizes coded apertures and different focus planes for the left and right imagers to capture complementary depth cues.

The Computational Pipeline

To estimate depth, the system employs a Joint Wiener Deconvolution algorithm. The process assumes a candidate depth, reconstructs a latent "blur-free" version of the scene using information from both images, and then "re-blurs" that reconstruction. The depth value that produces the closest match to the original captured images is selected as the correct estimate.

The computational pipeline involves Fourier transforms and Joint Wiener Deconvolution to estimate depth maps and reconstruct blur-free images.

A key mathematical insight of this work is the proof of a proportional relationship between binocular disparity ($d$) and the diameter of the defocus blur ($c$), defined as $d/c = l/D$, where $l$ is the baseline length and $D$ is the aperture diameter. This linear relationship allows the system to treat disparity and defocus as components of a single, unified Point Spread Function (PSF), turning a difficult correspondence problem into a more manageable optimization task.

Evaluation and Results

The method was evaluated using both synthetic datasets (simulated staircase scenes with various textures) and real-world experiments using a Nikon D200 stereo setup.

  • Overcoming the Aperture Problem: In simulations featuring horizontal stripes—a notorious failure case for traditional stereo—the fusion method reduced disparity errors from nearly 16 pixels to near zero.
  • Enhanced Accuracy: On standard textures like checkerboards, the hybrid approach outperformed standalone DFD and stereo, proving that the two cues are mutually reinforcing.
  • Image Reconstruction: Beyond depth mapping, the system successfully produced "all-in-focus" images from the blurry inputs, validating the effectiveness of the coded aperture and deconvolution pipeline.

Conclusion and Future Work

By fusing stereo and defocus cues, the researchers have created a more resilient depth-sensing framework. While the method effectively solves the aperture problem, it remains sensitive to image noise due to the nature of Wiener deconvolution and requires significant computational resources. Future research may investigate optimized aperture shapes for asymmetric camera pairs and the expansion of the system to multi-camera arrays to further improve robustness.

Summary updated

BibTeX
@inproceedings{takeda2013fusing,
  author = {Yuichi Takeda and Shinsaku Hiura and Kosuke Sato},
  title = {{Fusing Depth from Defocus and Stereo with Coded Apertures}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2013},
  doi = {10.1109/cvpr.2013.34},
}
Figure