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.
Usage | Returns |
---|
Image.medialAxis(neighborhood, units) | Image |
Argument | Type | Details |
---|
this: image | Image | The input image. |
neighborhood | Integer, default: 256 | Neighborhood size in pixels. |
units | String, default: "pixels" | The units of the neighborhood, currently only 'pixels' are supported. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-13 UTC.
[null,null,["Last updated 2024-07-13 UTC."],[[["Computes the discrete medial axis transform of the zero-valued pixels in the first band of an image."],["Outputs a 4-band image representing medial axis points, their support, and distances to power points."],["Accepts an input image, neighborhood size, and units as parameters for customization."]]],["This function calculates the discrete medial axis of an image's zero-valued pixels. It returns an image with four bands: `medial` (medial axis points scaled by distance), `coverage` (number of supporting points), `xlabel` (horizontal distance to the power point), and `ylabel` (vertical distance to the power point). The function accepts an input image, neighborhood size (default: 256 pixels), and units (only 'pixels' supported). It is called using `Image.medialAxis()`.\n"]]