Assignment #1: Solution
Assignment #1: Solution
Assignment #1
Illustrate the differences between Erosion and Dilation operations in a table. Consider the
following image f and structuring elements. Draw the output image after performing (i) Erosion
and (ii) Dilation operation using the given structuring elements.
1 1 1 0 0 1
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 0 1
0 0 0 1 0 1
0 0 0 0 0 0
0 0 1 0 1 0
Image f
1 0 1
0 1 0
1 0 1
Structuring element s
0 0 0 0 0 0
0 1 0 0 0 0
0 1 1 1 1 0
0 1 1 0 1 0
0 0 0 0 1 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
(ii) Dilation operation
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 0
0 1 0 1 1 0
0 0 1 0 1 0