CS194-26

Image Manipulation and Computational Photography

Project 5: Lightfield Camera:

Morad Shefa



Overview

In this project we use simple operations such as shifting and averaging of images to create exciting effects of images that were taking over a regularly spaced grid. We have 289 images of a chess board taken over a 14x14 grid.

Depth Refocusing

Focusing on far objects

Images that are further from the camera are in approximately the same position over the different frames. This means that when we average all frames these objects will stay sharp while images that are closer to the camera (whose position changes more in the frames) will get blurry.


Average of all frames

Depth Refocusing Other Areas

Simlarly since we know the position of each frame we can shift images such that objects closer are in approximately the same position over different frames. Following is a gif where we first focus on objects further then on objects closer then back to objects further.


Refocusing on different depths. Might have to reload if it is not playing

Changing Aperture

When we only take on image of the frames most of the image will be sharp as images that we are used to. However as we added more images to that average the image became blurrier for objects close by. This is imitating increasing the aperture of our camera.


One Image
All images averaged

Naturally, we can take any number of images around a radius of the center of our grid and imitate different apertures. Following is a gif that starts with only one image (small aperture) then gradually increases until the radius is large enough to include all images (large aperture) then it goes back to a small radius of images (small aperture).


Imitating Different Apertures. Might have to reload if it is not playing

Bells and whistles

I tried taking pictures along a grid and imitate these results. However, aligning the camera on the grid and pointing it in the right direction was difficult and as the following gif shows it was definitely very far from successful. Only made me appreciate Stanfords lightfield archieve even more :)


Own Lightfield Camera

I greatly enjoyed this project and it was exciting to learn how simple it can be to create cool effects with simple operations!