Computational Depth Encoding via Optical Modulation

27 concepts20 papers1 proposal

When a standard camera captures a three-dimensional scene, it projects a volumetric world onto a flat, two-dimensional sensor. In doing so, it discards depth information. Objects outside the focal plane are rendered with a uniform, circular defocus blur—often modeled as a Gaussian or pillbox function.

From an information-theory perspective, this standard defocus blur acts as a severe low-pass filter, permanently destroying high-frequency spatial details. Furthermore, standard blur is fundamentally ambiguous: an object placed slightly in front of the focal plane produces an identical blur pattern to one placed an equivalent distance behind it. Because distinct depths yield identical, mathematically irreversible blur patterns, recovering 3D structure from a single standard image is an ill-posed inverse problem.

To overcome this limitation, the field of computational imaging has shifted toward a hardware-software co-design paradigm known as "Deep Optics." As formalized by Wetzstein et al. in Deep Optics for Monocular Depth Estimation and 3D Object Detection, this approach abandons the goal of capturing a perfect, human-viewable image directly on the sensor. Instead, the physical optics are engineered to deliberately modulate incoming light, imprinting a unique, depth-dependent signature—or Point Spread Function (PSF)—directly onto the raw data. A computational backend then decodes this signature to reconstruct both sharp images and precise depth maps.

Structuring Blur with Amplitude and Phase Masks

The most direct way to prevent the loss of high-frequency spatial information is to modify the camera's aperture plane using physical masks. These masks generally fall into two categories: amplitude masks (coded apertures) and phase masks.

Amplitude Coding

Coded apertures introduce blocked and transparent patterns into the optical path. Instead of a smooth, circular blur, an out-of-focus point source projects the pattern of the mask onto the sensor. Takeda et al. demonstrate this mechanism in Fusing Depth from Defocus and Stereo with Coded Apertures, showing that high-frequency aperture masks preserve fine details that a standard circular aperture would destroy. Because the resulting blur contains sharp, high-frequency edges, the transformation becomes mathematically reversible, allowing algorithms to reliably compute depth-from-defocus even on repetitive or horizontal textures where traditional stereo vision fails.

This principle applies equally to active illumination systems. In Active One-Shot Scan for Wide Depth Range Using a Light Field Projector Based on Coded Aperture, Kawasaki et al. integrate a coded aperture mask into a video projector. When the projected pattern falls out of focus, it does not dissolve into a featureless blur; instead, it deforms into a depth-varying pattern that remains uniquely identifiable, allowing for high-precision 3D scanning across a wide depth range. In the context of non-visible light, Marks et al. utilize harmonic aperture coding in Coded apertures for x-ray scatter imaging to map spatial information into the frequency domain, enabling depth reconstruction through methods analogous to Fourier transform spectroscopy.

Phase Coding

While amplitude masks inevitably block incoming photons and reduce the signal-to-noise ratio, phase masks modulate the phase of light waves without sacrificing light throughput. In CodedStereo: Learned Phase Masks for Large Depth-of-Field Stereo, Tan et al. place a physical phase mask at the aperture plane to transform defocus blur into a structured depth cue, allowing a neural network to jointly recover sharp images and disparity maps.

Phase masks can be engineered to create highly specialized geometric behaviors. For example, Wang et al. employ a phase mask in Novel Sparse Recovery Algorithms for 3D Debris Localization using Rotating Point Spread Function Imagery that causes the PSF to rotate predictably based on the object's distance. This maps axial depth directly to an angular orientation, enabling 3D localization from a single monocular snapshot.

Standard Optics:   [Object at Depth Z]  -->  [Uniform Circular Blur]      (Ambiguous)
Phase-Coded Optic: [Object at Depth Z]  -->  [Rotated/Structured Pattern] (Unambiguous)

By embedding metric distance directly into the physical structure of the blur, phase coding resolves fundamental ambiguities in computer vision. Shah et al. leverage this in CodedVO: Coded Visual Odometry, demonstrating that a passive camera equipped with a phase mask can recover absolute scale and estimate trajectories without secondary sensors. Similarly, Wu et al. show in FreeCam3D: Snapshot Structured Light 3D with Freely-Moving Cameras that an optimized phase mask allows a system to compute absolute depth from a single snapshot, bypassing the need for a rigid, pre-calibrated baseline between the camera and projector.

Turning Chromatic Aberration into a Feature

In classical lens design, chromatic aberration is treated as a defect. Because a material's refractive index varies with wavelength, different colors of light bend at slightly different angles, causing them to focus at different axial positions. Computational depth encoding flips this paradigm, intentionally maximizing chromatic dispersion to perform single-shot depth-sectioning.

By mapping specific wavelengths to distinct focal planes, an optical system can capture multiple depth layers simultaneously within a single color exposure. Shanker et al. implement this in Quantitative phase imaging endoscopy with a metalens, using a specialized metalens to encode phase and depth information into different color channels. This allows the system to reconstruct 3D topographical maps of translucent biological samples without any moving parts or mechanical scanning.

This principle is not restricted to exotic metalenses; it can also be exploited in standard hardware. In Single Exposure Quantitative Phase Imaging with a Conventional Microscope Using Diffusion Models, the authors demonstrate that the inherent chromatic aberrations of a conventional microscope can provide the axial intensity variations required for 3D phase retrieval from a single RGB snapshot.

Wavelength λ_1 (Red)   ------\-------> Focus Plane 1 (Depth Z_1)
Wavelength λ_2 (Green) -------\------> Focus Plane 2 (Depth Z_2)
Wavelength λ_3 (Blue)  --------\-----> Focus Plane 3 (Depth Z_3)

To make these spectral cues more robust, researchers combine chromatic dispersion with structural masks. Arguello et al. introduce this in Depth Estimation from a Single Optical Encoded Image using a Learned Colored-Coded Aperture, utilizing a multi-colored coded aperture that produces depth-dependent, color-misaligned blur patterns. These rich spectral patterns act as unique optical fingerprints that resolve depth ambiguities.

Furthermore, Shabtay et al. demonstrate in Deep Phase Coded Image Prior that chromatic phase encoding ensures spatial information is preserved in at least one color channel regardless of the object's depth. If an object is out of focus in the red channel, it may be perfectly in focus in the blue channel, providing a self-supervised pathway to recover both sharp images and depth maps without requiring large training datasets.

Spatio-Temporal Modulation and Sensor Synchronization

A third dimension of computational depth encoding involves synchronizing optical modulation with the temporal readout mechanism of the image sensor, typically by leveraging a rolling electronic shutter.

Instead of exposing the entire sensor at once, a rolling shutter exposes rows sequentially over time. By varying the optical state in tandem with this row-by-row readout, depth can be mapped to specific spatial frequencies or geometric planes. Nagahara et al. pioneer this concept in Flexible Depth of Field Photography by physically translating an image sensor along the optical axis during a single exposure. By synchronizing this physical movement with the rolling shutter, different rows capture different focal planes, emulating complex tilt-shift and Scheimpflug optical effects without specialized lenses.

For active depth sensing, Friday et al. apply this synchronization to Time-of-Flight (ToF) imaging in Snapshot Lidar: Fourier Embedding of Amplitude and Phase for Single-Image Depth Reconstruction. By linearly varying the phase of an active light source in sync with the sensor's row readout, depth information is embedded into a spatial carrier frequency within a single frame, emulating off-axis holography and capturing both amplitude and phase simultaneously.

Rolling Shutter Readout:  Row 1 ----> Row 2 ----> Row 3 ----> Row 4
Light Source Phase:       Φ_1  ----> Φ_2  ----> Φ_3  ----> Φ_4
Resulting Sensor Frame:   [Spatial Carrier Frequency Embedding Depth & Phase]

When combined with programmable apertures, these temporal mechanisms allow for the compressive capture of high-dimensional light fields (which contain spatial, angular, and temporal data). In Acquiring a Dynamic Light Field through a Single-Shot Coded Image, Mizuno et al. synchronize aperture coding with pixel-wise exposure control. This dual-coding mechanism generates unique point spread functions for specific combinations of object motion and depth.

As further detailed by Mizuno in Compressive Acquisition of Light Field Video Using Aperture-Exposure-Coded Camera, these programmable spatio-temporal fingerprints allow deep learning models to successfully decouple and reconstruct complex 5D light field volumes from a single compressed 2D measurement, multiplying the effective frame rate and viewpoint capacity of standard sensors.

Key Foundational Work

Coded apertures for x-ray scatter imaging (2013) — contributed 1 concept elements to this direction.
Coded focal stack photography (2013) — contributed 1 concept elements to this direction.
Fusing Depth from Defocus and Stereo with Coded Apertures (2013) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_chromatic_depth_encoding_0fb3a150,
  title = {chromatic depth encoding},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/chromatic-depth-encoding/rdr_0fb3a15065fa41bb9021d248237471c2},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_chromatic_depth_encoding_0fb3a150_v1,
  title = {chromatic depth encoding},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/chromatic-depth-encoding/rdr_0fb3a15065fa41bb9021d248237471c2/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake