Project 2

Author: Skylar Sarabia

Gradient magnitude image formula:
$$ dx = \begin{bmatrix}1 & -1\\0 & 0\end{bmatrix}, dy = \begin{bmatrix}1 & 0\\-1 & 0\end{bmatrix} $$
$$ dx\_im = im * dx, dy\_im = im * dy $$
$$ $$
$$ gradmag = { \sqrt{(dx\_im)^2 + (dy\_im)^2} }.$$

dX Image

dY Image

Gradient Magnitude

Gradient Magnitude

(thresh = 0.3)

(thresh = 0.3)

Differences between results in 1.1 vs 1.2: The derivative edges are more prominent and there is noticiably less noise do to the image now consisting of lower frequencies (blurred). Since the noise was reduced, the threshold value can be reduced since only the stronges edges remain. In this case it went from 0.3 to 0.015.

Verify: Looking at the differences between "Blur then Derivative Convolve" and "Single Convolution" they look the same.

dX Filter

dY Filter

dXdY Filter

dX Image

dY Image

Gradient Magnitude

Gradient Magnitude

(thresh = 0.115)

(thresh = 0.115)

dX Image

dY Image

Gradient Magnitude

Gradient Magnitude

(thresh = 0.115)

(thresh = 0.115)

a = 0

a = 1

a = 2

a = 3

a = 0

a = 1

a = 2

a = 3

Original

Blurred

Sharpend

Low Frequency Image In

High Frequency Image In

Hybrid

Low Frequency Image In

High Frequency Image In

Hybrid

Due to the panda bear fur pattern of the panda, the panda is still very visible when looking from close.

Low Frequency Image In

High Frequency Image In

Hybrid

lF Image Input

lF Image Input (Low Frequency)

lF Image Input (Low Frequency FFT)

hF Image Input

hF Image Input (High Frequency)

hF Image Input (High Frequency FFT)

Hybrid FFT

Hybrid

Apple

Gaussian

Gaussian

Apple

Laplacian

Laplacian

Orange

Gaussian

Gaussian

Orange

Laplacian

Laplacian

Level 0

LHS

RHS

LHS + RHS

Level 2

LHS

RHS

LHS + RHS

Level 4

LHS

RHS

LHS + RHS

Collapsed

LHS

RHS

LHS + RHS

Base

Blend In

Mask

Collapsed

Base vs Collapsed

Base

Blend In

Mask

Collapsed

Base vs Collapsed

Base

Blend In

Mask

Collapsed

Base vs Collapsed

Inputs

Base

Blend In

Mask

Level 0

Base

Blend In

Base + Blend In

Level 2

Base

Blend In

Base + Blend In

Level 3

Base

Blend In

Base + Blend In

Collapsed

Base

Blend in

Base + Blend in

Base vs Collapsed

Base vs Collapsed

Bells & Whistles
Completed 2.3 & 2.4 in all color channels

I really enjoyed learning how to create hybrid images and multiresolution blending. I did not realize until this project how
important frequencies are to our visual perception of images. I used to make face swaps using photoshop using a blending feature
and I just implemented that feature myself!