0% found this document useful (0 votes)
25 views

Assignment #1: Solution

The document describes an assignment to (i) erode and (ii) dilate an image f using given structuring elements s. Erosion removes pixels on the image border and shrinks the image, while dilation adds pixels on the border and expands the image. The solutions show that erosion results in fewer 1s and a smaller shape compared to the original image, while dilation results in more 1s and a larger shape.

Uploaded by

All One
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Assignment #1: Solution

The document describes an assignment to (i) erode and (ii) dilate an image f using given structuring elements s. Erosion removes pixels on the image border and shrinks the image, while dilation adds pixels on the border and expands the image. The solutions show that erosion results in fewer 1s and a smaller shape compared to the original image, while dilation results in more 1s and a larger shape.

Uploaded by

All One
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

(Digital 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