CS194-26 Project 2: Fun with Filters and Frequencies!

Part 1

The first part of the project was about calculating image gradients using various methods. To find the gradient with respect to x and y, we convolved the image with the D_x and D_y arrays shown in the project webpage to get the gradient image along that axis. We then combined the two images using the equation sqrt(df/dx ** 2 + df/dy ** 2). To get the edge image for 1.1, I set all pixels under a certain threshold to zero. In part 1.2, we first blurred the image by convolving a gaussian kernel with the image, then applying the aforementioned process to get results. To speed up this process, we combined the gaussian convolution and gradient convolution into one convolution then found the edge image.

Between the edge images generated with and without blurring, the image generated without blurring had much sharper, disconnected edges. The image generated with blurring was connected throughout, but was much less sharp. The blurring also removed small edges in the grass behind the cameraman which the non blurred edge image couldn't filter out with any threshold.

Part 1 Images

X gradient of non blurred cameraman

Image missing

Y gradient of non blurred cameraman

Image missing

Gradient of non blurred cameraman

Image missing

Edge image of non blurred cameraman

Image missing

X gradient of blurred cameraman

Image missing

Y gradient of blurred cameraman

Image missing

Gradient of blurred cameraman

Image missing

Edge image of blurred cameraman

Image missing

Part 2

Part 2.1 Images

Taj before sharpening

Image missing

Taj after sharpening

Image missing

Tree before sharpening

Image missing

Tree after sharpening

Image missing

Pancake before blurring and sharpening

Image missing

Pancake after blurring

Image missing

Pancake after blurring then sharpening

Image missing

Part 2.2 Images

Derek Nutmeg hybrid

Image missing

Apple

Image missing

Saturn hybrid

Image missing

Apple saturn hybrid

Image missing
Hybrid failed since the apple doesn't have enough high frequency to be discernable when only using high frequencies

Young dog

Image missing

Old dog

Image missing

Dog hybrid

Image missing

Young dog frequency domain

Image missing

Old dog frequency domain

Image missing

Young dog filtered frequency domain

Image missing

Old dog filtered frequency domain

Image missing

Hybrid dog frequency domain

Image missing

Part 2.3 Images

Oraple Gaussian Stack

Image missing

Oraple Laplacian Stack

Image missing

Part 2.4 Images

Oraple Reverse Blended

Image missing

Tomato blended with a pineapple

Image missing

Baseball

Image missing

Tennis ball

Image missing

Baseball blended with a tennis ball

Image missing