Stay organized with collections Save and categorize content based on your preferences.
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.

Image.cluster(clusterer, outputName)Image
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.