user1409534
user1409534

Reputation: 2304

Erosion and dilation of binary image

Say I erode and then dilate a binary image contains single object with the same structuring element (i.e. that is opening).

Why I don't get the original object back?

Upvotes: 0

Views: 743

Answers (1)

DasKrümelmonster
DasKrümelmonster

Reputation: 6060

In an erosion, you loose information. There are multiple regions with different boundaries that result in the same thing when eroded.

As an example, see this doc entry: https://www.mathworks.com/help/images/ref/imerode.html The face and neck became completely black.

In a binary image, there may be elements which are smaller than the structuring element. There are completely eroded away.

The opening operation is documented here: https://www.mathworks.com/help/images/ref/imopen.html

Upvotes: 1

Related Questions