Morphology:
Morphological techniques typically probe an image with a small shape or template known as a
structuring element. The structuring element is positioned at all possible locations in the image and it is
compared with the corresponding neighborhood of pixels.Morphological operations differ in how they carry out
this comparison. Mathematical morphology is based on geometry. The theoretical foundations of morphological
image processing lies in set theory and the mathematical theory of order. The basic idea is to probe an image
with a template shape, which is called structuring element, to quantify the manner in which the structuring
element fits within a given image