File Exchange

image thumbnail

deprecated -- Light Field Toolbox v0.2 -- v0.3 now available

version (1.89 MB) by Donald Dansereau
A set of tools for working with light field (aka plenoptic) imagery in Matlab

1 Download

Updated 27 Nov 2014

View Version History

View License

This has been superseded by v0.3,
This is a set of tools for working with light field (aka plenoptic) imagery in Matlab. This version of the toolbox is focused on processing images from the Lytro plenoptic camera. Features include decoding, colour correction and visualization of light field images. New in version 0.2 are camera calibration, image rectification, and convenience functions for managing multiple light fields and multiple cameras. Future releases will support additional input formats and depth and volumetric filtering for improved rendering quality.
Download the sample light field pack at This revision of the sample pack introduces a folder structure facilitating the use of multiple cameras. A small sample calibration is also available at, and further calibration datasets can be found at .

The image decoding, calibration and rectification process is described in:

[1] D. G. Dansereau, O. Pizarro, and S. B. Williams, "Decoding, calibration and rectification for lenselet-based plenoptic cameras," in Computer Vision and Pattern Recognition (CVPR), IEEE Conference on. IEEE, Jun 2013.

Cite As

Donald Dansereau (2021). deprecated -- Light Field Toolbox v0.2 -- v0.3 now available (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)


Suppose I do not own the Computer Vision System Toolbox, containing 'detectCheckerboardPoints'. Is it safe to replace line 154 of 'LFCalFindCheckerCorners' with line 153 (using 'findcorners') from version 0.2 after coping the 'CornerFinder' folder into 'SupportFunctions'?


Thank you for the great work!

Can you help me and others please by giving a sample how the functions, for example LFDispVidCirc is used? What is supposed to be entered if this command is wanted to be used for the file 'img00058.lfp' i stored in the MATLAB folder?



3rd Time's a charm (seems that commenting is difficult): A very nice contribution. Rectifying Lytro data is now so much more easy :-)

With Matlab R2014a a very small fix was needed:

in file LFCalFindCheckerCorners.m
line 97:
(SerialIdx ~= MostFreqSerialIdx)' ); %DEBUG SV transpose added



MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: JSONLab: a toolbox to encode/decode JSON files

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!