Skip to content

Camera lightfield

Brian Wandell edited this page Jan 7, 2023 · 29 revisions

Relevant tutorials

We can simulate light field cameras based on a microlens array with multiple pixels behind each microlens. This relies on the omni camera model and special tools for combining a microlens array to the lens model. It will run on the GPU (Thomas Goossens implemented this).


Note: We updated the methods for combining a lens with a microlens array. It now relies on this function. How to set this up is described in the light field script t_cameraLightField (not the video) above.

[combinedLensFile, info] = piMicrolensInsert(uLens,iLens,...
    'n microlens',nMicrolens, 'offset method','linear', ...
    'max offset',maxMLXY);

The new methods allow us to create arrays that are shifted with respect to the pixel center, and that are displaced a few microns (or more) from the sensor itself. There are only a few methods now, but we intend to implement additional methods that start with the chief ray angle to define the shift. This is possible.

Have a look at the scripts s_sensorDPAFOffset.m and s_sensorDPAFMicrolens.m, s_sensorDPAF.m for more (overlapping) examples.


Clone this wiki locally