Here you'll find the MATLAB m-files we've written.
1. grayscale morphological erosion:
· 1x3 kernel
· 1x5 kernel
· 1x7 kernel
· 3x3 kernel
· 5x5 kernel
2. grayscale morphological dilation:
· 1x9 kernel
· 3x9 kernel
3. grayscale morphological opening:
4. grayscale morphological closing: