This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
Mathematical Morphology
Combining methods from set theory, topology and discrete mathematics, mathematical morphology provides a powerful approach to processing images and other discrete data. Mathematica includes an extensive and efficient implementation of mathematical morphology, fully integrated with Mathematica's general image and data processing.
Image Preparation
Binarize convert any image to black and white
ColorNegate flip black and white
Basic Operations
Dilation  ▪ Erosion  ▪ Opening  ▪ Closing
Morphological Transforms
Morphological Analysis
MorphologicalComponents identify connected components
CornerNeighbors option to specify neighborhood configuration