Part I: Plain old filtering
MATLAB code
For this part, implement a convolution in Matlab that will
allow you to take an image and a kernel (a square one) and generate
the new image that results from convolving the image with the kernel.
For all the steps below, apply your code to two images. One is the
Lena image (512x512), which is a straight TIFF image of the black and
white classic image processing image (e.g. in the Burt and Adelson
paper). The other is any image of your choosing. (Here is a 128x128
Lena image to try slow code on - use if your convolution code is
really slow....)
|
Original Images |
|
|
|
Box Car filter |
|
|
YOUR ANSWER GOES HERE
|
Subtract Box Filter |
|
|
|
7x7 filter Gaussian |
|
|
YOUR ANSWER GOES HERE
|
Subtract Gaussian Blur |
|
|
YOUR ANSWER GOES HERE
|
Box Car filter |
|
|
|
Subtract Box Filter |
|
|
|
7x7 filter Gaussian |
|
|
|
Subtract Gaussian Blur |
|
|
PART II. Pyramids
MATLAB code
YOUR a=?
Gaussian Pyramid for Image 1
NOTE: This is just a sample template with the same image at different sizes. It is not the Gaussian pyramid that we expect your code to generate
| Image 1 |
|
|
|
|
|
|
|
YOUR a=?
Gaussian Pyramid for Image 2
| Image 2 |
|
|
|
|
|
|
|
| Level | Image 1 | Image 2 | |
| 0 | ![]() |
![]() |
|
| 1 | ![]() |
![]() |
|
| 2 | ![]() |
![]() |
|
| 3 | ![]() |
![]() |
|
| 4 | ![]() |
![]() |
|
| 5 | ![]() |
![]() |
|
| 6 | ![]() |
![]() |
YOUR ANSWER GOES HERE
YOUR ANSWER GOES HERE
| Level | Image 1 | Image 2 | |
| 0 | ![]() |
![]() |
|
| 1 | ![]() |
![]() |
|
| 2 | ![]() |
![]() |
|
| 3 | ![]() |
![]() |
|
| 4 | ![]() |
![]() |
|
| 5 | ![]() |
![]() |
|
| 6 | ![]() |
![]() |
YOUR ANSWER GOES HERE
Additional MATLAB code for this problem (if any)
| Level | Image 1 | Image 2 | |
| 0 | ![]() |
![]() |
|
| 1 | ![]() |
![]() |
|
| 2 | ![]() |
![]() |
|
| 3 | ![]() |
![]() |
|
| 4 | ![]() |
![]() |
|
| 5 | ![]() |
![]() |
|
| 6 | ![]() |
![]() |