Homework 4

Original Image1

Mask1

Mask2

Mask3

 

Original Image2

Mask1

Mask2

Mask3

Questions:

a) They highlight vertical lines.

b) Using a small mask gives an output that is sharper, but the edges are not as obvious. Using a larger mask is blurry, but has nice thick lines for the edges.

c) Use a mask like this:

-1
-1
-1
0
0
0
1
1
1

 

Source Code