This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)


GeodesicDilation[marker, mask]
gives the fixed point of the geodesic dilation of the image marker constrained by the image mask.
  • GeodesicDilation[marker, mask] effectively starts with marker, then repeatedly dilates it, masking with mask, until the result no longer changes.
  • GeodesicDilation[marker, mask, n] iterates the dilation process at most n times.
  • GeodesicDilation effectively performs a morphological reconstruction by dilation.
  • If multiple image channels are present, GeodesicDilation operates on each of them separately.
Reconstruct the marked foreground objects:
Reconstruct the marked foreground objects:
Click for copyable input
Extract brighter objects from a color image:
Iteratively apply geodesic dilation:
New in 7