本文探讨了在MATLAB环境中应用不同类型卷积核进行数字图像处理的技术和方法,包括边缘检测、模糊化及锐化等效果的实现。
Write a function Convolution (Image I, Kernel H) that takes the following arguments:
a. Image B (the image is corrupted by salt-and-pepper noise).
b. Kernel H (you should allow for varying size kernels).
The output of the function should be the convolution of I with H.
Test your function and show results using the following kernels:
i. Averaging Kernels: 3×3 and 5 ×5
ii. Median Kernels: 3×3 and 5 ×5