Thursday, September 23, 2010

Activity 9: Morphological Operation


Results:
Figures 1 to 5 summarizes the prediction and observation of dilating and eroding a square, a triangle, a hollow square and a cross with different structuring elements.

Figure 1: Structuring element (2x2 matrix of ones)

Figure 2: Structuring element (1x2 matrix of ones)

Figure 3: Structuring element(2x1 matrix of ones)

Figure 4: Structuring element (Cross 3 pixels width and 3 pixels height)

Figure 5: Structuring element (Slash 2 pixels on the diagonal)

Dilation is done by mapping the structuring element on the edges of the shape and adding he pixel which exceeds. While erosion is done by mapping the structuring element on the edges and removing the pixels included if the structuring element is not covered within the shape.
Using other morphological operations in is show in Figure 6.

Figure 6: Skel- Thin Opereations

Skel operates by drawing the skeleton of the object. Thin operates by considering the fewest connected lines as possible.

References:
[1] M. Soriano, "Activity 9: Morphological Operations", AP 186, 2010.

Self Evaluation: 10

No comments:

Post a Comment