公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ee.Image.reduce
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
將縮減函式套用至圖片的所有波段。
縮減器必須有單一輸入內容,且會在每個像素呼叫,以縮減頻帶值堆疊。
輸出圖片會為每個縮減器輸出內容提供一個波段。
用量 | 傳回 |
---|
Image.reduce(reducer) | 圖片 |
引數 | 類型 | 詳細資料 |
---|
這個:image | 圖片 | 要縮小的圖片。 |
reducer | 縮減函式 | 要套用至指定圖片的縮減函式。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eApplies a reducer function to all bands of an image, processing each pixel's band values.\u003c/p\u003e\n"],["\u003cp\u003eThe reducer's output determines the number of bands in the resulting image.\u003c/p\u003e\n"],["\u003cp\u003eAn \u003ccode\u003eImage\u003c/code\u003e object is returned after the reducer is applied to the input image.\u003c/p\u003e\n"]]],[],null,["# ee.Image.reduce\n\nApplies a reducer to all of the bands of an image.\n\n\u003cbr /\u003e\n\nThe reducer must have a single input and will be called at each pixel to reduce the stack of band values.\n\nThe output image will have one band for each reducer output.\n\n| Usage | Returns |\n|-------------------------|---------|\n| Image.reduce`(reducer)` | Image |\n\n| Argument | Type | Details |\n|---------------|---------|------------------------------------------|\n| this: `image` | Image | The image to reduce. |\n| `reducer` | Reducer | The reducer to apply to the given image. |"]]