0% found this document useful (0 votes)
34 views2 pages

Assignment #1: Solution

The document describes an image processing assignment to (i) erode and (ii) dilate an image f using given structuring elements s. Erosion removes pixels on the image border while dilation adds pixels, shrinking and expanding the image respectively.

Uploaded by

All One
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views2 pages

Assignment #1: Solution

The document describes an image processing assignment to (i) erode and (ii) dilate an image f using given structuring elements s. Erosion removes pixels on the image border while dilation adds pixels, shrinking and expanding the image respectively.

Uploaded by

All One
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Image Processing

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

Solution: (i) Erosion Operation

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

You might also like