Mathematical Morphology

Paint a binary or grayscale grid; apply erode, dilate, open, close, and related morphology operators.

About this tool

Mathematical morphology on a binary or 8-bit grayscale grid (left = draw, right or Shift+click = erase). Load image samples luminance into the grid (optional Resize to grid stretches to W×H). Morphology: erode, dilate, open, close, edge, gradient (dilate − erode), top-hat / black-hat, and binary skeleton (Zhang–Suen thinning; grayscale is thresholded at 128).