Accumulates elements of each array pixel along the given axis, by setting each element of the result array pixel to the reduction of elements in that pixel along the given axis, up to and including the current position on the axis. May be used to make a cumulative sum, a monotonically increasing sequence, etc.

Image.arrayAccum(axis, reducer)Image
this: inputImage

Input image.


Axis along which to perform the cumulative sum.

reducerReducer, default: null

Reducer to accumulate values. Default is SUM, to produce the cumulative sum of each vector along the given axis.