Ask Your Question

Revision history [back]

Erosion / Dilation erroneous output for empty structuring element?

If one erodes an image by empty structuring element, it should be all 1s, but in case of OpenCV, it returns the image. Similarly, dilation of image by empty structuring element return image itself instead of all 0s.

Erosion / Dilation erroneous output for empty structuring element?

If one erodes an image by empty zeros(3,3) structuring element, it should be all 1s, but in case of OpenCV, it returns the image. Similarly, dilation of image by empty zeros(3,3) structuring element return image itself instead of all 0s.