Morphological operations like dilation and erosion are non-linear image transformations used to extract shape-related information from images by processing objects based on their morphology or shape properties using a structuring element, with dilation adding pixels to object boundaries and erosion removing pixels from object boundaries. The size and shape of the structuring element controls the number of pixels added or removed during these operations, which are used for tasks like noise removal, feature extraction, and image segmentation.
2. Morphological operation
• It is a collection of non-linear operations
related to the shape or morphology of
features in an image.
• ie , we process images according to its shape
• 2 fundamental operations
Dilation
Erosion
Brainbitz
3. DILATION AND EROSION
• Dilation adds pixels to the boundaries of
objects in an image
• Erosion removes pixels on object boundaries
Brainbitz
4. DILATION
• It grows or thicken objects in a binary image
• Thickening is controlled by a shape referred to
as structuring element
• Structuring element is a matrix of 1’s and 0’s
Brainbitz
10. Structuring element
• The number of pixels added or removed from
the objects in an image depends on the size
and shape of the structuring element
• It’s a matrix of 1’s and 0’s
• The center pixel of the structuring element,
called the origin
Brainbitz
11. Origin of a Diamond-Shaped Structuring
Element
Brainbitz
12. Dilation and erosion operation
• It use hit or miss transformation
• In the hit and miss transformation, an object
represented by a set X is examined through a
structural element represented by a set B.
• The structuring element is a shaped matrix
Brainbitz
14. Dilation in MATLAB
• Syntax
Y = imdilate(A,B)
• A  input image
• B  Structuring element
• Y Dilated image
Brainbitz
15. Structuring element in MATLAB
• They can be easily created using ‘strel’
function
se = strel ( shape , parameters )
• Shape can be ‘ diamond ’ , ’ square ’ , ’ disk ’ ,
’ line ’ etc.
Brainbitz