Morphology mainly deals with the contour and structure of the object. So this is used to
perform object extraction, noise removal procedure etc [18]. In this regard, we are applying
these operations in this step to enhance the object boundary and to remove the noise from the
image. As discussed in introduction, the most basic morphological operations are dilation and
erosion. Dilation adds pixels to the boundaries of objects in an image, while erosion removes
pixels on object boundaries. The number of pixels added or removed from the objects in an
image depends on the size and shape of the structuring element used to process the image. In
the morphological dilation and erosion operations, the state of any given pixel in the output
image is determined by applying a rule to the corresponding pixel and its neighbors in the input
image. The rule used to process the pixels defines the operation as dilation or erosion. The most
important part in the morphological operation is to choose the structuring element. A
structuring element is a matrix consisting of only 0's and 1's that can have any arbitrary shape
and size. The pixels describe the relative presence of one level in the neighborhood of another
level in a texture of image. The pixels with value of 1 define the neighborhood. Thus, a
neighborhood element is used to calculate the relative presence of one level with respect to