CS 194-26 Final Project

Charlotte Mei


Project1: LightField Camera


Part I: Depth Refocusing

In this part, I chose the center image to be 08_08, and shift all other images uv toward the center image. More specifically, I shift the images by alpha*(u-u_middle), alpha*(v-v_middle). After the shifting, I add the images together and take the average.

I tested a few values for the alpha, and it turns out that when alpha equals 0.2/0.3 the result is the best, as alpha value goes up, the image gets more blurry.

alpha=0.1
alpha=0.2
alpha=0.3
alpha=0.5
alpha=0.7

Part II: Aperture Adjustment

In this part, instead of using all the images to compute result, I used only the images around the center images based on input radius. For example, if the radius is 2, I would select images from 07_07 to 09_09 to compute the result.

As I increase the radius, the effect of depth-of-field increases.



radius=2
radius=4
radius=8
radius=16


Project 2: Reimplementation A Neural Algorithm of Artistic Style

In this project, I used the pretrained vgg19 neural network from pytorch with some simplifications in layers. I used the gram loss as proposed in the paper for the style loss, and total loss as style loss + content loss. I trained the neural network for 20 epoches, and here are some of the results.

the style image used