Earth Engine 将推出
非商业配额层级,以保护共享计算资源并确保为所有人提供可靠的性能。所有非商业项目都需要在
2026 年 4 月 27 日之前选择配额层级,否则系统会默认使用 Community 层级。层级配额将于
2026 年 4 月 27 日对所有项目生效(无论层级选择日期如何)。
了解详情。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
ee.Image.medialAxis
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
计算输入的第一个波段中值为零的像素的离散中轴。输出 4 个频段:
- medial - 中轴点,按距离缩放。
- 覆盖率 - 支持每个中轴点的点数。
- xlabel - 每个像素到功率点的水平距离。
- ylabel - 每个像素到幂次点的垂直距离。
| 用法 | 返回 |
|---|
Image.medialAxis(neighborhood, units) | 图片 |
| 参数 | 类型 | 详细信息 |
|---|
此:image | 图片 | 输入图片。 |
neighborhood | 整数,默认值:256 | 邻域大小(以像素为单位)。 |
units | 字符串,默认值:“pixels” | 邻域的单位,目前仅支持“像素”。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-04-20。
[null,null,["最后更新时间 (UTC):2026-04-20。"],[],["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"]]