Opening and closing |
open(M, Melem, b) Performs binary opening on matrix M at threshold b using structuring element Melem.
close(M, Melem, b) Performs binary closing on matrix M at threshold b using structuring element Melem.
These functions have binary output: foreground is always set to 255, while background is always set to 0.