CS194-26 Proj 5

Depth Refocusing and Aperture Adjustment with Light Field Data

Steve Shi


In this project, we use Stanford Light Field Library's images taken with light field photography to refocus pictures. This is accomplished by combining all images shifted by a particular amount. For each image, we compute dx, dy = k * (u, v) and shift each image according to the diplacement (dx, dy), where the k value controls the degree that the images are shifted.

Depth Refocusing

For depth refocusing, we compute the average shifted image, vary k between a certain range.

For this following chessboard image, we varied the k between 0 and 5 to vary the depth at which we perceive the chessboard.

Chessboard

Aperture Adjustment

Aperture is the window of light allowed into the camera. In this part, we mimic the adjustmnet of aperture by varying the amount of images we average to create the final image, where a larger aperture utilizes more images. I adjusted the image size from R = 0 to 9, utilizing images that were in R units of (8, 8).

Ball Aperture