Some of the morphological operations were erosion and dilation.
Erosion operator is defined by
The product of the erosion is to reduce the image A by the shape of B. The image should obviously be narrower or thinner.
Dilation operator is defined by
The product of the dilation is to expand the image A by the shape of B. The image should obviously be thicker or wider.
The images to be applied with morphological operations are as follows:
- A 5×5 square
- A triangle, base=4 boxes, height=3 boxes
- A hollow 10×10 square, 2 boxes thick
- A plus sign, one box thick, 5 boxes along each line
The structuring elements to be used, on the other hand, were the following
- 2×2 ones
- 2×1 ones
- 1×2 ones
- cross, 3 pixels long, one pixel thick
- A diagonal line, two boxes long
Erosion and Dilation results
The set of erosion and dilation results includes the one done by hand (graphing paper images) and the other using Scilab functions.
Erosion and dilation of a 5×5 square by the set of structuring elements
Erosion and dilation of a triangle, base=4 boxes, height=3 boxes by the set of structuring elements
Erosion and dilation of a hollow 10×10 square, 2 boxes thick by the set of structuring elements
Erosion and dilation of a plus sign, one box thick, 5 boxes along each line by the set of structuring elements
The predicted result were all matched with the code-simulated result. With this I give myself a grade of 10/10 by accomplishing all the required output.
________________________
[1] Soriano, M. "Morphological Operations." AP 186 Laboratory Manual. National Institute of Physics, University of the Philippines, Diliman. 2013.
No comments:
Post a Comment