CS180: Light Field Camera

by Adriel Vijuan

Depth Refocusing & Aperture Adjustment

Overview

In this project, I explored the capabilities of lightfield imaging by implementing depth refocusing and aperture adjustment techniques. I utilized multiple images captured over a grid orthogonal to the optical axis to recreate complex photographic effects through simple computational operations such as shifting and averaging.

The Stanford Light Field Archive provided sample datasets consisting of multiple images taken over a regularly spaced grid.

The project is divided into two main parts:

  1. Depth Refocusing: Adjusting focus at different depths within the scene.
  2. Aperture Adjustment: Simulating varying aperture sizes to alter depth of field.

1. Depth Refocusing

Depth refocusing allows me to simulate changing the focus depth within an image after it has been captured. By selectively shifting and averaging multiple exposures, I can emphasize different objects at varying depths.

Approach

Results

The depth refocused images demonstrate the ability to shift focus from foreground to background objects seamlessly, enhancing the visual clarity of the targeted depth layer. This technique effectively mimics the natural depth of field adjustment found in traditional photography.

2. Aperture Adjustment

Aperture adjustment simulates varying the size of a camera's aperture to control the depth of field. A larger aperture results in a shallower depth of field, while a smaller aperture increases the depth of field, keeping more of the scene in focus.

Approach

Results

The aperture-adjusted images effectively demonstrate how varying aperture sizes influence the depth of field. Larger apertures highlight foreground details with a shallow depth of field, while smaller apertures ensure that both foreground and background elements remain in sharp focus.

More Examples

Animated Aperture Adjustment

Animated GIF Showing Refocusing at Various Depths [-15,15]

Animated Aperture Adjustment

Animated GIF Showing Aperture Adjustments from Small to Large [1x1, 9x9]

3. Summary

Working on this project was highly engaging for me, especially because of my passion for photography. I found it interesting how shifting and averaging multiple images can change the focus depth, similar to adjusting the focus ring on a camera lens after taking a shot. Watching these simple computational techniques highlight certain areas of a scene while keeping other parts nicely blurred was really fascinating. Additionally, managing numerous images gave me valuable experience in handling large datasets and optimizing processes to ensure smooth and efficient operations.

Overall, this project greatly expanded my understanding of the amazing capabilities that lightfield technology offers in modern photography. It's impressive how these techniques can improve things like creative image manipulation, allowing people like me who take phpotos to to create more dynamic and visually appealing ones.