CS 194 Project 5: Depth Refocusing and Aperture Adjustment with Light Field Data

Introduction

This project uses images taken at different positions in a grid to provide additional light information for objects. We conduct depth refocusing and aperture adjustment by selecting a subset of images, shifting each of them correspondingly.

Depth Refocusing

I averaged all the images for each level of depth refocusing result. We shift each image to the center position, scaled by a factor of alpha. As I change alpha, the focus shifts.

alpha = 0

alpha = 1

alpha = 2

alpha = 3

gif

Aperture Adjustment

I increased the radius of the positions on the grid where images were taken. We start with only image at 08, 08 (the grid is 17 by 17). Then we average images at (08, 08), (07, 08), (09, 08), (08, 07), (08, 09). Gradually increase the radius until all the images are included (which is the most blurry outside, most focused on the target).

radius = 0

radius = 4

radius = 8

radius = 12

gif

Summary

Through this project, I learned how by averaging many images, the aligned pixels get more precise information whereas the un-aligned pixels become blurred. I also learned how depth focusing and aperture adjustment work.