Opencv 2.4 wiki error ?
Hey,
I found something weird on the opencv 2.4 documentation. http://docs.opencv.org/2.4/doc/tutori... It looks like dilate and erode title have been inversed. Let me know if i´m wrong. I will create a new issue on git.
i would not say, it's an error.
the meaning of erode and dilate depends on the definition of the foreground color (opencv uses white)
Ok thanks for your comment. Maybe this could be more accurate on the documentation : "the meaning of erode and dilate depends on the definition of the foreground color (opencv uses white)"
Maybe we should invert the image (white letter on black background)? Even by knowing that background is black, the pictures are not intuitive for me at first sight.
maybe a good idea, though you'd need to change the words "background" and "foreground" in the text, too.
@Eduardo You are right, at the firs sight it´s not intuitive. Plus, documentation should informs users than erode/dilate use white.
Geophysical meanning : Erode means high level (255) decrease (255 becomes 0) and dilate high level increase (0 become 255)