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.

UsageReturns
Image.reduce(reducer)Image
ArgumentTypeDetails
this: imageImageThe image to reduce.
reducerReducerThe reducer to apply to the given image.