Depth Refocusing

Using the images from the Stanford Light Field Archive, we can create effects that aren't possible with a single image. The two we focus on (unintentional pun) in this project is depth refocusing and aperture adjustment.

We can create the effect of refocusing the image by shifting all the images taken from slightly different positions to the center image and multiplying that by a small constant and then averaging the result.

constant = 0

constant = 0.1

constant = -0.1

Aperture Adjustment

To be able to create the effect of modifying the aperture, we can limit the image grid we average. Using a smaller area of images will result in a smaller looking aperture and vice versa.

17x17 grid

center 7x7 grid

center 3x3 grid

Summary

Initially I couldn't completely visualize how these ideas actually worked when implemented but after playing around with the images it started to come together. I thought it was cool to see how relatively simple methods could result in actually significantly modifying features like focus and aperture size.