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 subimage shown above. Find the gradient magnitude and gradient direction at the center entry using (i) the Prewitt operator, (ii) the Sobel operator.