25
Dilation with Structuring Elements
The arguments to dilation and erosion are
1.a binary image B
2.a structuring element S
dilate(B,S) takes binary image B, places the origin
of structuring element S over each 1-pixel, and ORs
the structuring element S into the output image at
the corresponding position.
0 0 0 0
0 1 1 0
0 0 0 0
1
1 1
0 1 1 0
0 1 1 1
0 0 0 0
origin
B
S
dilate
B Å S