Above is the first image you shall see in Wiki's mathematical morphology page, the shape in blue is the input image and the resulting morphological erosion with a diamond shaped structuring element is in yellow and dilation in green . I used this to open this entry because, maybe like the people who created the page, I think it's a pretty illustration and it draws you to this idea of morphology.
In image morphology, an input image and a structuring image are compared, the result of this operation is the output image. The foundation of morphology is basically Set Theory, where operations are used to compare and contrast different sets.
I had a hard time applying the concept of dilation and erosion, but thanks to Google I found several helpful sites (plus having helpful friends) that made me understand how I should use these two. The rest can be found in the acknowledgement section and the most helpful was from a lecture at Brigham Young University. First, there are two things that need to be set clear: the object and the structuring element. The object is the image to be operated upon, while the structuring element is the shape that will operate on the former. From this aforementioned lecture, it explained erosion and dilation as translations of each of the pixels of the structuring element, shown below:
For example, the structuring element of a square of four pixels against an image of a square that is of 5x5 pixels, the image is translated for every pixel in the structuring element. To get the dilated image, the union of these translations is taken. Consequently, the intersection of these translations is taken to get the erosion of the image. I must say that this process is tedious, but this is the clearest explanation I've seen yet. And I do believe that it's better to go slowly but surely rather than being too nonchalant and not understanding things thoroughly.
After predicting the results, we used Scilab to check our guesses. Below are the results of erosion and dilation of four shapes, a cross, a square, a triangle, and a hollow square (first column of Fig. 3 and 4).
There are several other methods used in morphology. Some of them are:
1. Opening
2. Closing
3. Skeletonization
4. Thinning
--
Thanks are in order!
BA
wiki http://en.wikipedia.org/wiki/Mathematical_morphology
http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/MORSE/morph1.pdf
http://www.mathworks.com/help/toolbox/images/f18-12508.html;jsessionid=4pkLMBrfWQfNyYSR1352k82kQyJxh3pSrRJvZkrtyLhPJpw3Fc9V!974718655
--
It took me a long time to complete this, but I think I deserve a 10.
Fig 1. Structuring elements
Fig 2. Objects
After predicting the results, we used Scilab to check our guesses. Below are the results of erosion and dilation of four shapes, a cross, a square, a triangle, and a hollow square (first column of Fig. 3 and 4).
Fig 3. Erosion
Fig 4. Dilation
There are several other methods used in morphology. Some of them are:
1. Opening
2. Closing
3. Skeletonization
4. Thinning
--
Thanks are in order!
BA
wiki http://en.wikipedia.org/wiki/Mathematical_morphology
http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/MORSE/morph1.pdf
http://www.mathworks.com/help/toolbox/images/f18-12508.html;jsessionid=4pkLMBrfWQfNyYSR1352k82kQyJxh3pSrRJvZkrtyLhPJpw3Fc9V!974718655
--
It took me a long time to complete this, but I think I deserve a 10.



















