CS194-26: Project 2

Candace Chiang

Part 1.1 + 1.2

We first convolve the image in each direction with $[[1, -1]]$ and $[[1], [-1]]$ to get the partial derivatives for x and y. The gradient image was produced by taking the sum of the squared partial derivatives in each direction, and then square-rooting that. I then used a threshold of 0.14 to binarize the image.

For the Gaussian blurs, we see that the edges are a lot cleaner due to a lot of the noise being cut out due to the filter; additionally, the edges are made more pronounced, helping even further with the edge detection.

Part 1.3

We see the city fails since the angle is too intense, and I didn't check every angle due to computation time. Additionally, the lines aren't all parallel to one another.

Part 2.1

For the sharpening, blurring, and re-sharpening, we see the image looks a lot more unnatural, with the colors being overly saturated and not smooth. The edges are also a lot more defined, which is not preferred in the case of the sakura picture. This is due to the fact that not all details were recovered as the highest frequencies are erased by the low-pass filter.

Part 2.2

This one looks pretty bad because of a number of reasons. The image sizes are too different, and the positioning of the character within the images is also really different (in one, his hair cut off, while in the other, all of it is shown along with additional space on top). Addtionally, the color schemes are very off.

Part 2.3

Part 2.4