Morphological filters
This online calculator can process the loaded image using one of the several morphological operators
This content is licensed under Creative Commons Attribution/Share-Alike License 3.0 (Unported). That means you may freely redistribute or modify this content under the same license conditions and must attribute the original author by placing a hyperlink from your site to this work https://planetcalc.com/9325/. Also, please do not modify any references to the original work (if any) contained in this content.
This calculator allows you to apply one of four morphological filters, that is, to perform erosion, dilation, closing, or opening of the loaded image. You can also specify the kernel size: 3x3 or 5x5, and the number of repetitions of the morphological operator. The principles of the operators are described below, under the calculator.
Morphological operators
They called morphological because the process objects in the input image based on characteristics of their shape. Basic morphological operators are:
Erosion (erode)
For each processed pixel of the image
- calculate the value of the luminosity for all neighboring pixels (8 in the case of a 3x3 grid)
- assign the value of the brightest pixel to the processed pixel
Thus, after applying this filter, the light parts of the image "expand". You can read about calculating the luminosity of a pixel, for example, here.
Dilation (dilate)
For each processed pixel of the image
- calculate the value of the luminosity for all neighboring pixels (8 in the case of a 3x3 grid)
- assign the value of the darkest pixel to the processed pixel
Thus, after applying this filter, the dark parts of the image "expand".
Closing
The closing is the sequential application of dilation and erosion
Opening
The opening is the sequential application of erosion and dilation
Comments