CS 194-26 Image Manipulation and Computational Photography

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

Daniel Li (cs194-26-aec)

Depth Refocusing

We define our image to be coordinate (8,8) in a grid of 17x17 images and we calculate the offsets from each of these images from the center, shifting each image by the offset and taking the average of all these images, multiplied by some constant c. Below are the images with different constants. At the bottom is the animation.

c = 0

c = .1

c = -.1

c = -.4

Animation using 6 frames

Aperture Adjustment

In this part of the project, we simulate changing the aperture by changing the radius of images we average from. Below are images with different radii and the animation.

a = 0

a = 3

a = 7

Animation

Conclusion

I thought this project was really cool and helped me understand a lot more about light fields and visual effects..