Image Morphology (Erosion & Dilation)

Procedure

  1. Load a binary or grayscale image.
  2. Create a structuring element (e.g., 3 × 3).
  3. Apply erosion.
  4. Apply dilation.
  5. Perform opening.
  6. Perform closing.
  7. Compare outputs.

Feedback

  • Which operation was most useful?
  • Was opening vs closing clear?

Additional Help

  • Try different structuring element shapes (rectangle, cross, ellipse).