Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Image.reduce
Stay organized with collections
Save and categorize content based on your preferences.
Applies a reducer to all of the bands of an image.
The reducer must have a single input and will be called at each pixel to reduce the stack of band values.
The output image will have one band for each reducer output.
Usage | Returns | Image.reduce(reducer) | Image |
Argument | Type | Details | this: image | Image | The image to reduce. |
reducer | Reducer | The reducer to apply to the given image. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["\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. |"]]