In image processing, filtering an image is replacing each pixel with a linear combination of its neighbors. This process can be accomplished through convolution of the image with convolution filters called kernels. A mathematical model for the convolution process is:
gx,y = ∑i=-n ∑j=-m hi,j * I(x-i, y-j)
Explain in detail at least two applications of filtering in image processing. [10 marks]
With the aid of a neat diagram, explain in detail the convolution process. [10 marks]
Apply the convolution method to filter image I:
I = 23 56 13 52 51 23 24 74 32 52 05 14 51 78 12 0 13 21 85 15 59 81 65 49 55 45 52 76 65 48 46 82 89 98 112 92 110 154 105 96 126
with kernel:
h = 1 0 -1 0 0 0 -1 0 1
[25 marks]
Validate your result using Matlab. [5 marks]