Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Computer Vision›Image Morphology Operations
Machine learningImage filtering and processing

Image Morphology Operations

Morphological Image Processing Operations · Also known as: Mathematical morphology, Morphological filtering

Morphological image processing, introduced by Jean Serra in 1982, is a technique based on set theory that reshapes and analyzes image regions using geometric structuring elements. Core operations include erosion and dilation, which can be combined into more complex operations like opening and closing, enabling noise removal, edge detection, and object analysis.

ScholarGate
  1. Machine learning
  2. v1
  3. 2 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Image Morphology Operations
Blob DetectionCanny Edge DetectionContour AnalysisHistogram EqualizationWatershed SegmentationBackground SubtractionHarris Corner DetectionHough TransformSIFT Feature Detection

When to use it

Use morphological operations for binary image cleanup, object separation, and feature extraction. Morphology excels at removing noise (opening), filling holes (closing), separating touching objects (sequential erosion), and extracting boundaries (morphological gradient). Avoid morphology on grayscale images without conversion to binary through thresholding; morphological operations are inherently binary, though extensions to grayscale exist.

Strengths & limitations

Strengths
  • Simple, computationally efficient filtering based on shape and topology
  • Removes noise while preserving object structure better than linear filters
  • Combines erosion and dilation for diverse effects (opening, closing, gradients)
  • Theoretically grounded in set theory and topology
  • Works on binary and grayscale images; GPU acceleration available
Limitations
  • Requires binary (or multilevel) input; continuous-valued images need thresholding first
  • Sensitive to structuring element choice; different shapes produce different results
  • May remove thin or small features depending on structuring element size
  • Limited to shape-based analysis; cannot recognize objects based on intensity or texture alone

Frequently asked

What is the difference between erosion and dilation?

Erosion shrinks bright (foreground) regions: output pixels are set to 1 only if the entire structuring element fits within the foreground. Dilation expands bright regions: output pixels are set to 1 if the structuring element overlaps any foreground pixel. Erosion removes small features; dilation fills small holes. They are opposite operations in effect.

When should I use opening versus closing?

Opening (erosion then dilation) removes small foreground objects and noise while preserving larger object shapes. Use opening to clean up binary images with noise. Closing (dilation then erosion) fills small holes and connects nearby objects while preserving overall shape. Use closing to fill interior voids or merge nearby objects. Together, opening and closing form a complete morphological filter.

How do I choose the right structuring element size?

Structuring element size should match the scale of features to be removed or preserved. For noise removal, use a structuring element slightly larger than the noise size. For object separation, use a smaller element. For edge detection, use a small element (typically 3×3). Larger elements affect larger structures; smaller elements affect finer details.

Can morphological operations be applied to grayscale images?

Yes, but they operate on grayscale values directly, generalizing the min (erosion) and max (dilation) operations to all pixel values. Grayscale erosion replaces each pixel with the minimum in the structuring element neighborhood; grayscale dilation uses the maximum. The results are different from thresholding to binary first, offering more flexibility but different semantics.

Sources

  1. Serra, J. (1982). Image Analysis and Mathematical Morphology. Academic Press. link ↗
  2. Haralick, R. M., Sternberg, S. R., & Zink, X. (1987). Image analysis using mathematical morphology. IEEE Transactions on Pattern Analysis and Machine Intelligence, 9(4), 532–550. DOI: 10.1109/TPAMI.1987.4767941 ↗

How to cite this page

ScholarGate. (2026, June 3). Morphological Image Processing Operations. ScholarGate. https://scholargate.app/en/computer-vision/image-morphology

Related methods

Blob DetectionCanny Edge DetectionContour AnalysisHistogram EqualizationWatershed Segmentation

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Blob DetectionComputer Vision↔ compare
  • Canny Edge DetectionComputer Vision↔ compare
  • Contour AnalysisComputer Vision↔ compare
  • Histogram EqualizationComputer Vision↔ compare
  • Watershed SegmentationComputer Vision↔ compare
Compare side by side →

Referenced by

Background SubtractionBlob DetectionCanny Edge DetectionContour AnalysisHarris Corner DetectionHistogram EqualizationHough TransformSIFT Feature DetectionWatershed Segmentation

Similar methods

Watershed SegmentationContour AnalysisCanny Edge DetectionScale-Space TheoryHough TransformBlob DetectionHistogram EqualizationBackground Subtraction

Related reference concepts

Image Processing and AnalysisEdge and Contour DetectionImage Filtering and EnhancementImage SegmentationComputer VisionGeometry Processing

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Image Morphology Operations (Morphological Image Processing Operations). Retrieved 2026-07-21 from https://scholargate.app/en/computer-vision/image-morphology · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Jean Serra
Subfamily
Image filtering and processing
Year
1982
Type
Set theory and topological image processing
Related methods
Blob DetectionCanny Edge DetectionContour AnalysisHistogram EqualizationWatershed Segmentation
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account