GOOGLE EARTH ENGINE——Errors in extracting land types in land classification (result extraction of multiple land classifications)

question:

Can anyone help me with this problem? I want to mask hills, cities and water bodies from my dataset and then perform classification.

but masking doesn't work

Key functions:

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.

Update the mask at all locations in the image where the existing mask is not zero. The output image preserves 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.

The new mask for the image, a float in the range [0, 1] (invalid = 0, valid = 1). If the image has only one band, it will be used for all bands of the input image; otherwise, must have the same number of bands as the input image.

Returns: Image

or(image2)

Return

Guess you like

Origin blog.csdn.net/qq_31988139/article/details/131770517