Programming Project #5: Lightfield Camera

Emilie Gao (abe)

Depth Refocusing

Overview:

For this part of the project, my first approach was to average all of the images without shifting any of them. This caused my image to focus on something near the "further" away part of the image. However, after thinkinga bout it a little, I decided to shfit each image by a little bit. I thought about it this way. When you shift each image so that the items that are closer to you are in the same spot, then when you average the images, they will seem clearer. To do this, I ended up using the amounts to shift given to me in the names of the files. These numbers range from 0 to 16 for the x values as well as the y values. Since the range was from 0 to 16, I decided to center my images around 8, so if the coordinates given were 00_00, I would actually roll my image by -8 and -8 (there was a bit of confusing with the coordinate system so I ended up actually shifting on by 8, but I believe it did what I theoretically explained). I ended up also having to use a scalar in order to shift the images by the amount that I liked, so I used a range from -1 to 3. I also used a total of 16 images to create my gif.

Original Image Example

original chess

Depth refocusing

depth refocusing

Aperture Adjustment

Overview:

For this part, I thought it was similar to the last part in that we were shifting and averaging images in order to create an adjusted aperture. Instead of using all of the images, provided, I only used those on the perpindicular axis. I also used apertures of varying size from 1 to 8. For some reason my images showed up a bit darker than I would have liked.

Adjusted Aperture

adjusted aperture