26
Erosion with Structuring Elements
erode(B,S) takes a binary image B, places the origin
of structuring element S over every pixel position, and
ORs a binary 1 into that position of the output image only if
every position of S (with a 1) covers a 1 in B.
0 0 1 1 0
0 0 1 1 0
0 0 1 1 0
1 1 1 1 1
1
1
1
0 0 0 0 0
0 0 1 1 0
0 0 1 1 0
0 0 0 0 0
B
S
origin
erode
B     S