CS 194-26 Project 5

Albert Chen

Part 1: Depth Refocusing


To create the final image, I shifted each image based on its original image and averaged them together. The amount that I shifted each image is linearly proportional to its distance away from the mean. For each of these gifs I created images with maximum shifts of 0, 5, 10, 15, 20, and 25.


Part 2: Aperture Adjustment


To adjust the aperture I used the same algorithm from part 1 and simply restricted the images that I averaged. Limiting the images averaged to those close to the center decreases the effective size of the aperature. For the following gifs I used aperture sizes that are 100%, 80%, 60%, 40%, and 20% of the full aperture size.