Depth Refocusing and Aperture Adjustment with Light Field Data

Spencer Hamilton, CS 194, Fall 2021

In this project, I am using light field data from The Stanford Light Field Archive to change the focal plane and aperture of a scene. Each light field consists of a grid of 17x17 uniformly spaced images, and in each set they share a common focal plane. By averaging the images, we can focus the image at a far point in the scene as shown below.

Depth Refocusing

By shifting each image to a centralized reference and multiplying by a scalar and then averaging, we can refocus the depth of our scene. The results are shown below.

Aperture Adjustment

I am able to create the effect of aperture adjustment by setting a radius and only using the images in the set that fall within the radius from the middle image. I define the radius of the aperture by setting n to a specific number and as n grows, so does the radius.

Summary

This project demonstrated how understanding of light sources and multiple data points can allow for fun tricks in image processing.