Erosion
Reduces the size of foreground objects by iteratively shrinking their boundaries.
Check options and parameters of erode
method
Erosion is a fundamental morphological operation in image processing that is used to reduce the size of foreground objects (regions of interest) within an image while preserving their shape and structure. It works by moving a structuring element (also known as a kernel) over the image and replacing each pixel with the minimum value of the pixels covered by the structuring element. Erosion is particularly useful for tasks like noise reduction, edge detection, and object separation.


Parameters and default values
options
Options
Property | Required | Default value |
---|---|---|
iterations | no | 1 |
kernel | no | [[1, 1, 1],[1, 1, 1],[1, 1, 1]] |