GeodesicErosion[marker, mask]
gives the fixed point of the geodesic erosion of the marker constrained by the mask.

Details and OptionsDetails and Options

  • GeodesicErosion works with binary, grayscale, and other images.
  • GeodesicErosion works with 3D as well as 2D images, and also with data arrays of any rank.
  • GeodesicErosion[marker, mask] effectively starts with marker then repeatedly erodes it, masking with mask until the result no longer changes. For symbolic data, the geodesic erosion is done only once.
  • GeodesicErosion[marker, mask, n] iterates the erosion process at most n times.
  • GeodesicErosion by default treats all pixels surrounding a given pixel as adjacent. A given pixel has eight adjacent pixels in 2D and 26 adjacent pixels in 3D.
  • The option setting CornerNeighbors->False treats only the pixels in the coordinate directions as adjacent, which would include four pixels in 2D and six pixels in 3D.
  • If multiple image channels are present, GeodesicErosion operates on each of them separately.
  • GeodesicErosion takes a Padding option that specifies the values to assume for pixels outside the image.
  • The default setting Padding->None considers smaller neighborhoods at the edges of an image.
New in 7 | Last modified in 9
New to Mathematica? Find your learning path »
Have a question? Ask support »