ee.Image.cluster

Applies a clusterer to an image. Returns a new image with a single band containing values from 0 to N, indicating the cluster each pixel is assigned to.

UsageReturns
Image.cluster(clusterer, outputName)Image
ArgumentTypeDetails
this: imageImageThe image to cluster. Must contain all the bands in the clusterer's schema.
clustererClustererThe clusterer to use.
outputNameString, default: "cluster"The name of the output band.