1) Convolve the subimage shown below with a 3x3 mean filter. What is the output of the convolution at the center entry of the subimage? What about if you use a 3x3 median filter?
4 1 6 1 3
3 2 7 7 2
2 5 7 3 7
1 4 7 1 3
0 1 6 4 4
2) Consider the sub-image shown above. Find the gradient magnitude and gradient direction at the center entry using the following operators. (Hint: Calculate for just the center pixel not the entire sub-image)
(a) The Prewitt operator, and
(b) The Sobel operator.