Project 5: Lightfield Camera - Steven Wu (acz)

Introduction

In this project, we reproduce depth refocusing and aperture adjustment effects in a light field camera.

Here, we use Stanford's Light Field Dataset, which are pictures obtained by taking pictures of an object with a 17x17 array of cameras. Each one takes pictures at a slightly different position, which allows us to recombine them with a series of shifts and averages to produce photos with refocused effects.

 

Depth Refoucusing

We can specify a displacement range and we shift the images by the corresponding displacement vector. The final image is just the average of all shifted images. To generate the GIF below, I set my alpha span from -8 to 8 with a step of 0.4.

 

Aperture Adjustment

Using the same idea, we can increase the aperture size of the “camera”. Since the cameras are set up in a 17x17 grid, we can just average cameras that are in some radius R with camera [8, 8] being the center.