GOOGLE EARTH ENGINE——土地分类中提取地类中出现的错误(多土地分类的结果提取)

问题:

谁能帮我解决这个问题吗?我想从我的数据集中掩盖山丘、城市和水域,然后执行分类。

但屏蔽不起作用

关键函数:

updateMask(mask)

Updates an image's mask at all positions where the existing mask is not zero. The output image retains the metadata and footprint of the input image.

更新图像中所有现有掩码不为零位置的掩码。输出图像保留输入图像的元数据和足迹。

Arguments:

this:image (Image):

Input image.

mask (Image):

New mask for the image, as a floating-point value in the range [0, 1] (invalid = 0, valid = 1). If this image has a single band, it is used for all bands in the input image; otherwise, must have the same number of bands as the input image.

图像的新掩码,范围为[0, 1](无效 = 0, 有效 = 1)的浮点数。如果该图像只有一个波段,它将用于输入图像的所有波段;否则,必须具有与输入图像相同的波段数。

Returns: Image

or(image2)

Return

猜你喜欢

转载自blog.csdn.net/qq_31988139/article/details/131770517