ee.Image.cluster
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מחילה על התמונה אלגוריתם לאשכולות. הפונקציה מחזירה תמונה חדשה עם פס יחיד שמכיל ערכים מ-0 עד N, שמציינים את האשכול שלכל פיקסל משויך.
שימוש | החזרות |
---|
Image.cluster(clusterer, outputName) | תמונה |
ארגומנט | סוג | פרטים |
---|
זה: image | תמונה | התמונה לאשכול. חייב להכיל את כל הפסים בסכימה של הכלי לאשכולות. |
clusterer | Clusterer | האלגוריתם לאשכולות שבו רוצים להשתמש. |
outputName | מחרוזת, ברירת מחדל: cluster | השם של פס הפלט. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\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. |"]]