Collin Chin's Programming Project #5

collin.chin@berkeley.edu
cs194-26-abx

Depth Refocusing

The algorithm used for depth refocusing was inspired by the flash light field viewer algorithm at http://lightfield.stanford.edu/aperture.html. First, arrange the input images into a 17x17 grid equivalent to their original setup and offsets. Second, shift all the (u, v) coordinates of the subaperture views so that their centroid is (0, 0). Third, apply a uniform depth (range 1-3) to the (u, v) coordinates translating each image by shift * given depth [-x,y] and finally summing translations into one image.

Aperature Adjustment

The algorithm is nearly identical to the depth algorithm. The only change we make is computing on circular offset around the centroid as opposed to at a given depth. This window is adjusted from aperature 1-7 in each gif.

Lightfield Enlightenments

I really enjoyed this project and learned how refocusing = summing windows extracted from several microlenses and stopping down = summing only the central portion of each microlens.