ee.Image.medialAxis

Computes the discrete medial axis of the zero valued pixels of the first band of the input. Outputs 4 bands:

 medial - the medial axis points, scaled by the distance.

 coverage - the number of points supporting each medial axis point.

 xlabel - the horizontal distance to the power point for each pixel.

 ylabel - the vertical distance to the power point for each pixel.

UsageReturns
Image.medialAxis(neighborhood, units)Image
ArgumentTypeDetails
this: imageImageThe input image.
neighborhoodInteger, default: 256Neighborhood size in pixels.
unitsString, default: "pixels"The units of the neighborhood, currently only 'pixels' are supported.