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


Updated In 8 Graphic
gives the fixed point of the geodesic dilation of the image marker constrained by the image mask.
  • GeodesicDilation effectively starts with marker, then repeatedly dilates it, masking with mask, until the result no longer changes.
  • GeodesicDilation effectively performs a morphological reconstruction by dilation.
  • GeodesicDilation by default treats all eight pixels surrounding a given pixel as adjacent.
  • The option setting CornerNeighbors->False treats only the four pixels in the coordinate directions as adjacent.
  • If multiple image channels are present, GeodesicDilation operates on each of them separately.
  • The default setting Padding->None considers smaller neighborhoods at the edges of an image.
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 | Last modified in 8