Project 5

CS194-26 Project 5

Zhanshi Wang

Part 1: Depth Refocusing


By averaging properly shifted images from Stanford Light Field Archive we can obtain digital refocused images. For this part shifting is easy because we can use the grid value provided in the light field image data to shift the images. The amount of shifting in each direction is determined by the difference between the grid (u, v) location and the average (u, v), scaled by a factor which is used to adjust the focus position.

chess_lf refocuse lego_lf aperture refocuse
×

Part 2: Aperture Adjustment


This time we use only a portion of the images within a certain range to adjust the aperture. In the first part, we used all the images that we achieved the effect of using largest possible aperture. This time we will use the images taken from a certain range in the u-v plain. I limited to use only the images with the grid (u, v) position within a range from the average (u, v) point to do the same computation as part 1.

lego_lf aperture lego_lf aperture

Powered by w3.css