Part 1: Filters

1.1 Finite Difference Operator

We use simple finite difference operators to perform edge detection on the cameraman image. Specifically, we convolve the filters Dx = [-1 1] and Dy = [1 -1]T with the image to get the partial derivatives in x and y directions. The gradient magnitude is computed as res(i,j) = sqrt(cameraman_dx(i,j)2 + cameraman_dy(i,j)2), which accounts for edges in all directions. Finally, we binarize the image by setting pixels above 50 to 255 and others to 0. As we can see, the thresholds for this is 0.2.

cameraman cameraman

1.2 Derivative of Gaussian (DoG) Filter

First of all, I used a Gaussian filter to blur the original image:

cameraman

As we can see the iamges below, the images show that applying finite difference filters after blurring with a Gaussian filter yields smoother edges compared to applying the filters directly, as in part 1.1. The resulting edge-detected images have continuous, less jagged edges. By combining blurring and derivative filters into a single Derivative of Gaussian (DoG) filter, we achieve smooth edge detection with just one convolution. The DoG filter results match those seen previously, demonstrating the effectiveness of this approach.

cameraman cameraman cameraman

Part 2: Fun with Frequencies!

2.1 Image "Sharpening"

In this part, we will first blur the images and then sharpen them. Here are the images:

cameraman cameraman cameraman

2.2 Hybrid Images

Derek&Nutmeg

cameraman
DerekPicture
cameraman
Nutmeg
cameraman
Results

Lion&Cat

cameraman
Lion
cameraman
Cat
cameraman
Results

Frequency

cameraman
Frequency of Lion
cameraman
Low Frequency of Lion
cameraman
Frequency of Cat
cameraman
High Frequency of Cat
cameraman
Frequency of Hybrid

Failed

cameraman
Apple
cameraman
Orange
cameraman
Mask

2.3 Gaussian and Laplacian Stacks

Gaussian Stack of Apple and Orange:

cameraman cameraman

Laplacian Stack of Apple and Orange:

cameraman cameraman

Results in each levels:

cameraman cameraman cameraman cameraman cameraman cameraman

2.4 Multiresolution Blending (a.k.a. the oraple!)

Oraple

cameraman
Apple
cameraman
Orange
cameraman
Mask
cameraman
Oraple

Chick&Desert

cameraman
chicken
cameraman
Dersert
cameraman
Mask
cameraman
Results

Favorite: Derser&Ocean

cameraman
Dersert
cameraman
Ocean
cameraman
Mask
cameraman
Results

Blening Process

cameraman cameraman cameraman cameraman cameraman cameraman cameraman