ee.Image.reduce
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."],[[["Applies a reducer function to all bands of an image, processing each pixel's band values."],["The reducer's output determines the number of bands in the resulting image."],["An `Image` object is returned after the reducer is applied to the input image."]]],[]]