I have to do that filter, I’ve found nice article about that (http://www.codersource.net/csharp_image_processing_erosion.aspx), but why the value 11 (on this picture) isn’t instead value 16 and 19 (in the second row). This value is the minimum yet.
I have to do that filter, I’ve found nice article about that ( http://www.codersource.net/csharp_image_processing_erosion.aspx
Share
Erosion in a gray-scale image takes the minimum of the values around the pixel according to the structuring element.
If you put the cross shaped structuring element on the element in the second row with initial value 19, you’ll realize that its neighborhood is the cells with values 23(up), 42(left), 255(right), 11(down) and 19(the cell it self). Out of these, 11 is the minimum value so the value after erosion is 11.