The erosion (corrosion) algorithm performs a 2D filtering operation on the input image using the provided 2D Boolean kernel. The Boolean kernel size defines the pixel neighborhood of the filtering operation. As a morphological operation operator, equivalent to a minimization operation, it reduces or shrinks the foreground area in the picture (in this case the white color in the figure below), the causes unwanted small or thin objects to disappear, recognizing and filling holes in the picture.
| Input Image | Parameter | Output Image |
|---|---|---|
![]() | - | ![]() |
The erosion filter is equivalent to the minimum operation and will shrink the bright structures in the image, another morphological filter is Dilate, which is equivalent to the maximum operation. Expansion filters may be used after erosion filters to form morphological closures of the image.
For detailed interface information, please refer to hbVPErode.