Opencv 2.4 wiki error ?

asked 2016-09-28 05:38:36 -0600

Erwan gravatar image

updated 2016-09-28 05:42:32 -0600

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.

edit retag flag offensive close merge delete

Comments

1

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)

berak gravatar imageberak ( 2016-09-28 05:43:52 -0600 )edit

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)"

Erwan gravatar imageErwan ( 2016-09-28 06:05:11 -0600 )edit
1

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.

Eduardo gravatar imageEduardo ( 2016-09-28 08:03:27 -0600 )edit

maybe a good idea, though you'd need to change the words "background" and "foreground" in the text, too.

berak gravatar imageberak ( 2016-09-28 08:10:55 -0600 )edit

@Eduardo You are right, at the firs sight it´s not intuitive. Plus, documentation should informs users than erode/dilate use white.

Erwan gravatar imageErwan ( 2016-09-28 08:11:25 -0600 )edit

Geophysical meanning : Erode means high level (255) decrease (255 becomes 0) and dilate high level increase (0 become 255)

LBerger gravatar imageLBerger ( 2016-09-28 11:57:10 -0600 )edit