O'Reilly logo

Computer Vision with Python 3 by Saurabh Kapur

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Erosion

Erosion, like in geology, means the removal of the top layer of soil or earth by wind, water, and so on. In image processing too, it means to remove parts of the image. Like the top layer of the soil starts depleting, applying erosion to an image makes the objects in the image to shrink while maintaining the overall structure and shape of the image. But why do we want to shrink objects in an image? Consider a scenario where you have two objects in an image and they are really close by, and you do want your algorithm to assume that they are the same object. Hence you shrink both the objects to mark a clear distinction between the two objects. Another use case of erosion is to remove noise from the image. Erosion might not be the best ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required