Home

SIGGRAPH 2007 · MATLAB tutorial

Computing a 4D Light Field from a 2D Image

The MATLAB example reconstructs a 4D light field from the 2D photograph captured by the heterodyne camera. The cosine mask has four harmonics, producing 9 × 9 angular samples. Calibration determines the spectral spacing and mask phase.

02

Image and frequency-domain comparison

Traditional-camera photograph and 2D Fourier transform. Most energy is concentrated at low frequencies.
Traditional-camera photograph and 2D Fourier transform. Most energy is concentrated at low frequencies.
The same scene photographed through a cosine mask, with visible spectral replicas.
The same scene photographed through a cosine mask, with visible spectral replicas.

The near-sensor mask dapples the incoming light, creating spectral replicas. Four harmonics produce nine impulses per frequency direction and 81 spectral tiles.