Wednesday, July 16, 2008

Activity 8: Morphological Operations

In this activity, we are asked to perform different Morphological Operations such as Dilation and Erosion to modify images.

Given a binary image A and a structuring image B, the dilation of A by B results to an elongated or expanded image of A. Here, for each pixel in A superimpose the origin of B, as long as the origin is within A, its pixel value is retained. Otherwise the pixel value is deleted resulting to the erosion of A by B, and thus, a reduced image of A.

The binary images used in this activity are shown below:

square(50x50 ), triangle(base=50, height=30), circle(radius=25), hollow square(60x60, with 4pixel thick edges), cross(8pixels thick, 50pixels long)

The following figures are the given binary images applied with Dilation and then by Erosion Operation. For each operation, the binary images were dilated/eroded with the given structuring elements : 4x4 ones, 2x4 ones, 4x2 ones, and a cross (5pixels long, 1 pixel thick) respectively.

Square: Dilation and Erosion

Triangle: Dilation and Erosion

Circle: Dilation and Erosion

Hollow square: Dilation and Erosion

Cross: Dilation and Erosion


rating - 9, because although I got the correct output images in my simulations, some of the predicted images I drew were wrong.

Acknowledgements: Lei and marge - for helping me with the prediction of the output images

No comments: