Joint Image and Depth Estimation With Mask-Based Lensless Cameras

Yucheng Zheng, M. Salman Asif

Introduction

Traditional imaging systems rely on bulky glass lenses to focus light onto a sensor. Lensless cameras, such as the "FlatCam," offer a radical alternative by replacing lenses with thin, coded masks. While this architecture enables ultra-thin and potentially flexible form factors, it produces scrambled "shadow" measurements that require sophisticated computational reconstruction.

A persistent challenge in lensless imaging has been the accurate reconstruction of scenes with continuous depth. Previous algorithms often assumed scenes were composed of a few discrete flat planes or a sparse 3D grid. This assumption fails for natural scenes containing slanted surfaces or curved objects. This paper introduces a new framework for the joint estimation of both high-quality images and continuous depth maps from a single 2D sensor measurement.

Methods

The proposed approach treats reconstruction as a non-convex optimization problem, moving beyond discrete depth layers to a continuous representation.

Overview of the proposed 3D reconstruction pipeline, from captured measurements to continuous 3D reconstruction.

1. The Imaging Model

The core of the system is a mathematical model relating sensor measurements to light intensity ($l$) and inverse depth ($\alpha$). The mask's shadow scales and shifts based on the object's distance, effectively encoding depth into the geometry of the captured data.

The geometric relationship between the light source, coded mask, and sensor, defining the mask-sensor and inverse depth relations.

The relationship is defined as $m = \alpha s + d \tan \theta$, where the inverse depth $\alpha = 1 - d/z$ links the physical depth $z$ to the observed mask pattern.

2. Optimization Strategy

Because the optimization landscape is non-convex, the researchers employ a multi-stage strategy:

  • Initialization via Greedy Pursuit: A "greedy" algorithm provides a rough, discretized estimate of the scene, ensuring the subsequent optimization starts near the global optimum.
  • Alternating Gradient Descent: The algorithm iteratively updates image intensity and the depth map.
  • Adaptive Regularization: To maintain sharp object boundaries while ensuring smooth depth transitions, the method utilizes Weighted TV-$\ell_2$ regularization. This acts similarly to a bilateral filter, preserving structural integrity across the 3D scene.

Key Results

The framework was evaluated using standard 3D datasets (Middlebury, Make3D, NYU Depth) and a physical hardware prototype featuring a Sony IMX249 CMOS sensor.

The proposed method demonstrated significant quantitative and qualitative improvements over state-of-the-art greedy methods. In simulated "Cones" scenes, the approach achieved an Image PSNR of 31.65 dB (compared to 16.57 dB for previous greedy methods) and reduced Depth RMSE from 87.48 mm to 17.90 mm. Real-world tests confirmed the ability to reconstruct complex geometries, such as slanted cards and textured mugs, which previously appeared discretized or "spiky."

Conclusion

By treating depth as a continuous variable and employing robust regularization, this work overcomes a major limitation of lensless cameras. While challenges remain regarding computational speed and sensitivity to low-light conditions, this framework paves the way for high-fidelity 3D sensing in ultra-compact form factors.

Summary updated

BibTeX
@article{zheng2020joint,
  author = {Yucheng Zheng and M. Salman Asif},
  title = {{Joint Image and Depth Estimation With Mask-Based Lensless Cameras}},
  journal = {IEEE Trans. Computational Imaging},
  year = {2020},
  doi = {10.1109/tci.2020.3010360},
}
Figure