File Exchange

image thumbnail

Light Field Toolbox v0.4

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


Updated 12 Feb 2015

View License

This is a set of tools for working with light field (aka plenoptic) imagery in Matlab. Features include decoding, calibration, rectification, colour correction, basic filtering and visualization of light field images. New in version 0.4 are some linear depth/focus and denoising filters.
Download the sample light field pack at Sample calibration datasets can be found at

Comments and Ratings (15)

Zhijie Ma

I believe there is a bug in LFFiltShiftSum. In line 105, LF is being overwritten, even though it is still being used in line 103 (within the same forloop). The workaround is to save LF as another variable, and use that new variable in line 103.

Tom Campbell

Antonin Sulc


TJ Li (view profile)

Timin Li

David Hart

@Maryam Jaberi, see LFDemo*, and the examples in LFToolbox.pdf.

Luoluo Wang

Is the any sample code about how the functions can be used in an example scenario like generating .jason files, LF coordinates or rendering new views?

@Corey Jaskoloski, I've addressed your question here:

There's now a google community for the toolbox, feel free to post questions, projects, feature ideas, bugs and cool light field-related news:

This is a great toolbox. Thanks for sharing it! I am looking to extract from Lytro Illum raws left/right 3D image pairs with variable baseline. I didn't see a function in the toolbox to specifically do that. Do you have any guidance on how I could implement with the existing toolbox function?



Added thumbnail

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

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.

Learn About Live Editor