Dilation and erosion
-
Upload
aswin-pv -
Category
Engineering
-
view
158 -
download
1
description
Transcript of Dilation and erosion
![Page 1: Dilation and erosion](https://reader036.fdocuments.in/reader036/viewer/2022082503/558b4c1cd8b42a452a8b46c5/html5/thumbnails/1.jpg)
DILATION AND EROSION
![Page 2: Dilation and erosion](https://reader036.fdocuments.in/reader036/viewer/2022082503/558b4c1cd8b42a452a8b46c5/html5/thumbnails/2.jpg)
DILATION AND EROSION
• These are two fundamental morphological operations.
• Morphological operations -a collection of non-linear operations related to the shape or morphology of features in an image
• Dilation adds pixels to the boundaries of objects in an image
• Erosion removes pixels on object boundaries
![Page 3: Dilation and erosion](https://reader036.fdocuments.in/reader036/viewer/2022082503/558b4c1cd8b42a452a8b46c5/html5/thumbnails/3.jpg)
![Page 4: Dilation and erosion](https://reader036.fdocuments.in/reader036/viewer/2022082503/558b4c1cd8b42a452a8b46c5/html5/thumbnails/4.jpg)
![Page 5: Dilation and erosion](https://reader036.fdocuments.in/reader036/viewer/2022082503/558b4c1cd8b42a452a8b46c5/html5/thumbnails/5.jpg)
![Page 6: Dilation and erosion](https://reader036.fdocuments.in/reader036/viewer/2022082503/558b4c1cd8b42a452a8b46c5/html5/thumbnails/6.jpg)
![Page 7: Dilation and erosion](https://reader036.fdocuments.in/reader036/viewer/2022082503/558b4c1cd8b42a452a8b46c5/html5/thumbnails/7.jpg)
Structuring element
• The number of pixels added or removed from the objects in an image depends on the size and shape of the structuring element
• It’s a matrix of 1’s and 0’s• The center pixel of the structuring element,
called the origin
![Page 8: Dilation and erosion](https://reader036.fdocuments.in/reader036/viewer/2022082503/558b4c1cd8b42a452a8b46c5/html5/thumbnails/8.jpg)
Origin of a Diamond-Shaped Structuring Element
![Page 9: Dilation and erosion](https://reader036.fdocuments.in/reader036/viewer/2022082503/558b4c1cd8b42a452a8b46c5/html5/thumbnails/9.jpg)
Dilation program
BW = zeros(9,10); BW(4:6,4:7) = 1SE = strel('square',3)BW2 = imdilate(BW,SE)
![Page 10: Dilation and erosion](https://reader036.fdocuments.in/reader036/viewer/2022082503/558b4c1cd8b42a452a8b46c5/html5/thumbnails/10.jpg)
![Page 11: Dilation and erosion](https://reader036.fdocuments.in/reader036/viewer/2022082503/558b4c1cd8b42a452a8b46c5/html5/thumbnails/11.jpg)