In this activity, we tried to investigate the effects of dilation and erosion of an image by a structuring element. We predicted first what would happen and then simulated them in SciLab.
The structuring elements used were:
- 4x4 ones
- 2x4 ones
- 4x2 ones
- cross, 1pixel thick, 5 pixels long
We dilated and eroded images of a square, a triangle, a hollow square (60 x 60, 4px thick), a circle and a cross.
So far, most of my predictions were wrong. I was fairly good in guessing for the square, triangle and hollow square images and slightly for the cross. I was terrible with the circle.
I also realized that the image size I should should be larger than the shape of the actual square or triangle, etc. This is because if the input image Img is m x n, the dilated image is also m x n. Some parts were cut in the dilated image. But since in erosion the result is smaller than the image, the effect of this operation was more imminent.
Remarks:
Beth Prieto, Ayeen Laganapan, Rica Mercado for helping me grapple with concepts.
Julie Dado for assisting me in publishing a video.
Grade: 9/10
B. Triangle
C. Hollow square
D. Circle
E. Cross
No comments:
Post a Comment