公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Image.cluster
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
将聚类器应用于图片。返回一个新图片,其中包含一个波段,该波段包含 0 到 N 之间的值,用于指示每个像素分配到的聚类。
用法 | 返回 |
---|
Image.cluster(clusterer, outputName) | 图片 |
参数 | 类型 | 详细信息 |
---|
此:image | 图片 | 要聚类的图片。必须包含聚类器架构中的所有频段。 |
clusterer | 聚类器 | 要使用的聚类器。 |
outputName | 字符串,默认值:“cluster” | 输出频段的名称。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eApplies a provided clusterer to an image, assigning each pixel to a cluster.\u003c/p\u003e\n"],["\u003cp\u003eReturns a new single-band image where pixel values (0 to N) represent their assigned cluster.\u003c/p\u003e\n"],["\u003cp\u003eRequires an input image containing all bands specified in the clusterer's schema.\u003c/p\u003e\n"],["\u003cp\u003eUsers can specify the name of the output band containing cluster assignments.\u003c/p\u003e\n"]]],[],null,["# ee.Image.cluster\n\nApplies a clusterer to an image. Returns a new image with a single band containing values from 0 to N, indicating the cluster each pixel is assigned to.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------------------|---------|\n| Image.cluster`(clusterer, `*outputName*`)` | Image |\n\n| Argument | Type | Details |\n|---------------|----------------------------|-----------------------------------------------------------------------------|\n| this: `image` | Image | The image to cluster. Must contain all the bands in the clusterer's schema. |\n| `clusterer` | Clusterer | The clusterer to use. |\n| `outputName` | String, default: \"cluster\" | The name of the output band. |"]]