zl程序教程

您现在的位置是:首页 >  其他

当前栏目

Google Earth Engine(GEE)——机器学习(监督分类)多边形为训练样本!

Google机器学习 分类 Engine Earth GEE 监督
2023-09-11 14:15:11 时间

如果训练数据是代表同质区域的多边形,则每个多边形中的每个像素都是一个训练点。您可以使用多边形进行训练,如下例所示:

函数:classify()

classify(classifier, outputName)

对图像进行分类。

Classifies an image.

Arguments:

图像(图像):
要分类的图像。波段是按名称从该图像中提取的,它必须包含分类器模式中命名的所有波段。

分类器(Classifier):
要使用的分类器。

输出名称(字符串,默认值:“分类”):
要添加的乐队的名称。如果分类器产生 1 个以上的输出,则忽略此名称

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 th