Original Picture
Camera Dx
Camera Dy
Camera Gradient Magnitude
Camera Gradient Magnitude Binarized
In this section, we started by calculating the partial derivatives
in x
and y
using the finite difference
operator [1, -1]
and [1; -1]
.
To find the partial derivatives, we used the convolve2d
function. We then found the gradient magnitude image by taking the
square root of the sum of the squared partial derivatives.
Finally, we binarized this image by thresholding it qualitatively.
Here are the results:
Original Picture
Camera Dx
Camera Dy
Camera Gradient Magnitude
Camera Gradient Magnitude Binarized
Camera Blurred then Dx
Camera Blurred then Dy
Camera Blurred then Gradient Magnitude
Camera Blurred then Gradient Magnitude Binarized
Here, we see that the noise levels in the derivatives has gone down and the edges are much more prominent and thicker than before.
Gaussian Dx
Gaussian Dy
Camera with Gaussian Blurred Dx
Camera with Gaussian Blurred Dy
Camera with Gaussian Blurred Gradient Magnitude
Camera with Gaussian Blurred Gradient Magnitude Binarized
We can see that we get the same result as before.
Progression of Sharpening:
Taj Mahal Sharpening Progression
Interstellar Wave Sharpening Progression
We also try blurring the image first then sharpening it. We observe that we gain more noise while having more prominent edges. Other details of the wave are lost in the process.
Wave Blurred
Wave Blurred then Sharpened
Cat
Derek
Cat Derek Hybrid
Cat Derek Hybrid
Mickey O
Happy Mickey
Mickey Hybrid
Mickey Hybrid
Interstellar Crying
Interstellar Crying With Arm
Interstellar Hybrid
Interstellar Hybrid
In this last case, we see the expression through the hand, so we can consider this a failure case.
Additionally, for the Mickey Mouse hybrid, we can visualize the intermediate frequency analysis:
Mickey Spectra
Apple Laplacian and Gaussian Stack
Orange Laplacian and Gaussian Stack
Replication of Figure 3.42 (Levels 0, 2, 4, then Summed Contributions)
Apple
Orange
Oraple
My Brother (Baby)
My Brother (Older)
My Brother (Baby Mask)
My Brother's Age Blend
Galaxy 1
Galaxy 2
Galaxy Blend
The most important thing I learned in this project was how to apply Fourier analysis to images. This idea blew my mind and I loved visualizing the Laplacian and Gaussian results especially for the picture of my brother.