Tag Archives: Erode

Mathematical Morphology – Opening and Closing, Top Hat, Black Hat, Gradient in OpenCV

We discussed dilation and erosion in previous article where we discussed that one expands the object pixels and the other shrinks them. What if we combine these operations? Fine these interesting details written below. Opening An erosion operation followed by dilation operation with the same structuring element is known as opening operation. An opening removes… Read More »

Mathematical Morphology – Erosion in OpenCV

Mathematical Morphology – Erosion Erosion can be used to shrink object shapes by removing pixels from boundary. It is exact opposite of dilation (expands the object pixels). Performing erode operation on object shape results the following : Removes any small points of noise or any narrow features Reduce the size of objects ( Number of… Read More »