Classifies an image.
Usage | Returns |
---|---|
Image.classify(classifier, outputName) | Image |
Argument | Type | Details |
---|---|---|
this: image | Image | The image to classify. Bands are extracted from this image by name, and it must contain all the bands named in the classifier's schema. |
classifier | Classifier | The classifier to use. |
outputName | String, default: "classification" | The name of the band to be added. If the classifier produces more than 1 output, this name is ignored. |