The array below represents a small greyscale image. Compute the
images that result when
the image is convolved with each of the masks (a) to (h) shown. At
the edge of the image use
a restricted mask. (In other words, pad the image with
zeroes.)
20 20 20 10 10 10 10 10 10
20 20 20 20 20 20 20 20 10
20 20 20 10 10 10 10 20 10
20 20 10 10 10 10 10 20 10
20 10 10 10 10 10 10 20 10
10 10 10 10 20 10 10 20 10
10 10 10 10 10 10 10 10 10
20 10 20 20 10 10 10 20 20
20 10 10 20 10 10 20 10 20
(a)
-1 -1 0
-1 0 1
0 1 1
(b)
0 -1 -1
1 0 -1
1 1 0
(c)
-1 -1 -1
2 2 2
-1 -1 -1
(d)
-1 2 -1
-1 2 -1
-1 2 -1
(e)
-1 -1 -1
-1 8 -1
-1 -1 -1
(f)
1 1 1
1 1 1
1 1 1
(g)
-1 0 1
-1 0 1
-1 0 1
(h)
0 -1 0
-1 4 -1
0 -1 0
Since it's very hectic work calculating by hand, it's takes loads of time to complete even one of the filter. It would be impossible to do all these under the time limit. I have explained the steps to calculate output. I hope you understand the process and it helps you to solve the remaining part of the problem. Thank you.
Get Answers For Free
Most questions answered within 1 hours.