Dip Week 6 Short Noots
Dip Week 6 Short Noots
Dip Week 6 Short Noots
Morphology
Morphology is a broad set of image processing operations that process images based on shapes. Morphological
operations apply a structuring element to an input image, creating an output image of the same size. In a morphological
operation, the value of each pixel in the output image is based on a comparison of the corresponding pixel in the input
image with its neighbors.
The following figure illustrates the dilation of a binary image. The structuring element defines the neighborhood
of the pixel of interest, which is circled. The dilation function applies the appropriate rule to the pixels in the
neighborhood and assigns a value to the corresponding pixel in the output image. In the figure, the
morphological dilation function sets the value of the output pixel to 1 because one of the elements in the
neighborhood defined by the structuring element is on. For more information, see Structuring Elements.
1
Rizwan Notes (Digital Image Processing-CS-504-UAF-3(2-1)) [W-6]
The following figure illustrates this processing for a grayscale image. The dilation function applies the rule to
the neighborhood of the circled pixel of interest. The value of the corresponding pixel in the output image is
assigned as the highest value among all neighborhood pixels. In the figure, the value of the output pixel
is 16 because it is the highest value in the neighborhood defined by the structuring element.
Morphological Dilation of a Gray-scale Image
2
Rizwan Notes (Digital Image Processing-CS-504-UAF-3(2-1)) [W-6]
3
Rizwan Notes (Digital Image Processing-CS-504-UAF-3(2-1)) [W-6]