公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ee.Image.cluster
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
對圖片套用叢集器。傳回新圖片,其中包含的值介於 0 到 N 之間,表示每個像素所屬的叢集。
用量 | 傳回 |
---|
Image.cluster(clusterer, outputName) | 圖片 |
引數 | 類型 | 詳細資料 |
---|
這個:image | 圖片 | 要叢集的圖片。必須包含叢集器架構中的所有頻帶。 |
clusterer | 叢集器 | 要使用的叢集器。 |
outputName | 字串,預設值為「cluster」 | 輸出頻帶的名稱。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間: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. |"]]