CS194 - Lightfield Camera

Nathan Yuchi(CS194-26-acl)

Depth Refocusing

When we average all the photos together, we can see that the subjects further away are more in focus than subjects that are closer. This is because the further a subject is, the less it moves when the position of the camera moves. In order to focus at different distances, we can shift the images by an appropriate amount first and then average the images, resulting in different subjects in focus.

In order to change the focus, we take the (u, v) location of the camera, or the location of the camera in the 17 x 17 camera array. Then we calculate the difference between (u, v) and the center of the camera array and multiply the difference by a scalar to change the area in focus. Because the camera array that produced the data we are using is 17 x 17 , we use (8, 8) as the center.

No Shifting

Scalar = -3

Scalar = -1

Aperture Adjustment

In order to change the aperture, we change the sample of images that we average. When averaging more images, we simulate a larger aperture and intensify the blur that is present in the images.

We simulate changing the aperture using the Stanford images by increasing the radius of images used, centered on the middle (8, 8) image.

Radius = 0

Radius = 2

Radius = 5

Radius = 7