Project 2 - Fun with Filters and Frequencies

1.1 Finite Difference Operator

The gradient magnitude measures the rate of intensity change in an image. It is calculated using finite difference operators (Gx and Gy) to estimate horizontal and vertical changes. The results are combined using the Euclidean norm to highlight edges. Binarization can then be applied to create a binary representation of detected edges.

Original Image - Cameraman

Original Image - Cameraman

Gx | Gy

Cameraman Gx Gy

Gm | Gm - Binarized

Gm | Gm - Binarized

1.2 Blurring the Image

Blurred Image

Blurred Image

Blurred Gx | Gy

Blurred Gy

Blurred Gm | Gm - Binarized

Blurred Gm | Blurred Gm - Binarized

Differences Observed

Applying a Gaussian filter before using the finite difference operator creates a blurred version of the image, which reduces noise. This smoothing results in cleaner gradient images, allowing for sharper edge detection and a more accurate representation of the image's features.

Using Derivative of Gaussian Filters

By convolving the Gaussian filter with the derivative operators Dx and Dy, we create Derivative of Gaussian (DoG) filters. DoG simplifies the process by combining smoothing and differentiation into one step.

Verification of Results

The resulting gradient images from the DoG filters closely resemble those from the two-step process.

2.1 Unsharp Masking

Taj Mahal

Blurred | Sharpened Taj Mahal

Flower

Blurred | Sharpened Flower

Monet

Blurred | Sharpened Monet

Moon (After blurring and sharpened)

Blurrd | Sharpened Moon

Sharpening the blurred image brought back the detail but it is not as sharp as the original image.

2.2 Hybrid Images

Derek Nutmeg Hybrid

Derek Nutmeg Hybrid

Donald

FFT Donald

Duck

FFT Duck

Donald and Duck Hybrid - Failure

Donald Duck Hybrid

Lion

FFT Lion

Zebra

FFT Zebra

Lion and Zebra Hybrid

Lion Zebra Hybrid

Bells & Whistles

I experimented with using color to enhance the effect. In my tests, applying color to both the high-frequency and low-frequency components produced the best results, providing a more detailed representation of the image.

2.3 Gaussian and Laplacian Stacks

Apple Image Stacks

Apple Gaussian | Laplacian Level 1
Apple Gaussian | Laplacian Level 2
Apple Gaussian | Laplacian Level 3
Apple Gaussian | Laplacian Level 4
Apple Gaussian | Laplacian Level 5

Orange Image Stacks

Orange Gaussian | Laplacian Level 1
Orange Gaussian | Laplacian Level 2
Orange Gaussian | Laplacian Level 3
Orange Gaussian | Laplacian Level 4
Orange Gaussian | Laplacian Level 5

2.4 Multiresolution Blending

Orapple

Blended Image - Orapple

Moon Phase and Cityscape

Moon Phase Cityscape

Blended Moon and Cityscape (horizontal mask)

Blended Moon and Cityscape

Window and Space

Window Space

Blended Window and Space (irregular mask)

Blended Window and Space