Morphological Operations

← Back to Digital Image Processing Basics

Morphological operations process binary (or grayscale) images using a structuring element \(B\):

  • Erosion: removes small protrusions; shrinks foreground.

  • Dilation: fills small holes; expands foreground.

  • Opening (erosion then dilation): removes small objects.

  • Closing (dilation then erosion): fills small holes.

  • Watershed: topology-based algorithm for separating touching objects by treating the intensity surface as a landscape and flooding from seed points.

See also