Dilation |
dilate(M, Melem, r_origin, c_origin, b) Performs binary dilation on matrix M at threshold b using structuring element Melem with origin at row r_origin and column c_origin.
dilate4(M, b) Performs dilation on matrix M at threshold b using 4 neighbors.
dilate8(M, b) Performs dilation on matrix M at threshold b using 4 neighbors.
The dilate function has binary output: foreground is always set to 255, while background is always set to 0.