Mathematical Morphology

Binary / grayscale grid, mathematical morphology operators, optional image import

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).