Figura 17.187. Esempio di applicazione del filtro Erodi
Immagine originale
Il filtro «Erodi» applicato
Questo filtro amplia e mette in risalto le aree scure del livello o della selezione correnti.
For every image pixel, it brings the pixel Value (luminosity) into line with the lowest Value (the darkest) of the 8 neighboring pixels (3×3 matrix). So, a dark pixel is added around dark areas. An isolated pixel on a brighter background will be changed to a big «pixel», composed of 9 pixels, and that will create some noise in the image.
In this image, the studied pixel has a red border and the studied 3×3 matrix has a green border. Thus when the pixel marked with «I» is inside the green border, the studied pixel turns to black.
Una più grande area scura si dilaterà di un pixel in tutte le direzioni:
Il filtro è stato applicato 2 volte.
On more complex images, dark areas are widened and enhanced the same, and somewhat pixelated. Here, the filter was applied 3 times:
Naturalmente se lo sfondo è più scuro del primo piano esso coprirà l'intera immagine.