公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Image.reduce
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
将缩减器应用于映像的所有波段。
缩减器必须具有单个输入,并且将在每个像素处调用,以缩减波段值堆栈。
输出图片将为每个 reducer 输出提供一个波段。
用法 | 返回 |
---|
Image.reduce(reducer) | 图片 |
参数 | 类型 | 详细信息 |
---|
此:image | 图片 | 要缩减的图片。 |
reducer | 缩减器 | 要应用于指定图片的精简器。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):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. |"]]