Behavior of Morphology Functions in Edge Cases

asked 2016-03-10 20:13:44 -0600

isaacenrique gravatar image

Greetings.

I'm using OpenCV 2.4.9.

What should be the behavior of the functions of morphology (erosion and dilation) when the structuring element is null (cv::Mat()) or the number of iterations is zero (0) or negative?

Initially I thought that in such cases the result should be the input image without any change. However, I have noticed that is not the case.

Is it a bug?

Thanks in advance for any help and/or suggestions

edit retag flag offensive close merge delete