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
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
I thought this project was really cool and helped me understand a lot more about light fields and visual effects..