Many of us here at photo SE have read about light field photography and related cameras from Lytro and Raytrix.

A few of the advantages it allows are post-capture software focus, scene perspective changing and manipulation, and 3D video.

Are there any reference software implementations or available demo code of lightfield imaging for the above features and the related algorithms? (I read that FFT/IFFT is the tool used in obtaining software-focussed images, but I do not understand the full details of this.)

I've heard rumors that Nvidia Cuda has some thing for it, but I need more details if anyone has them.

  • \$\begingroup\$ See also photo.stackexchange.com/questions/13378/… \$\endgroup\$
    – mattdm
    Commented Oct 14, 2011 at 20:39
  • \$\begingroup\$ @mattdm - Thank you. I had read about this post after and material on Lytro site & blog. But I am looking for implementation to play with(if possible) and understand how exactly the captured images would be and how the software focus would be done in post. \$\endgroup\$
    – goldenmean
    Commented Oct 15, 2011 at 10:26

1 Answer 1


I'm not sure about reference code; this is relatively new, and mostly what I can find are papers, not implementations with open code. A key paper is Fourier Slice Photography, by Ren Ng at Stanford University — now, not surprisingly, at Lytro. There's an abstract of the paper here, with a few nice pictures.

This doesn't give you something that you can take and just drop into place, but it gives you some technical, mathy details of how to go from the output of a plenoptic camera to a usable result. Of course, that's not all: for more, take a look at Ng's 200+-page PhD thesis on the topic.

You will probably also find the materials for MIT's MAS.531 / MAS.131 Computational Camera and Photography helpful. Thanks to the OpenCourseWare initiative, you can download and go through all the course materials yourself (including audio from the lectures).

  • \$\begingroup\$ Thanks about the new MIT resource link. I did have the 'fourier photo' paper and Ren NG's thesis on same. \$\endgroup\$
    – goldenmean
    Commented Oct 18, 2011 at 9:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.