با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
ماسک تصویر را در تمام موقعیت هایی که ماسک موجود صفر نیست به روز می کند. تصویر خروجی ابرداده و ردپای تصویر ورودی را حفظ می کند.
استفاده
برمی گرداند
Image.updateMask (mask)
تصویر
استدلال
تایپ کنید
جزئیات
این: image
تصویر
تصویر ورودی
mask
تصویر
ماسک جدید برای تصویر، به عنوان یک مقدار ممیز شناور در محدوده [0، 1] (نامعتبر = 0، معتبر = 1). اگر این تصویر دارای یک باند باشد، برای تمام باندهای تصویر ورودی استفاده می شود. در غیر این صورت، باید همان تعداد باندهای تصویر ورودی را داشته باشد.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["`updateMask()` modifies an image's mask, making pixels with a mask value of 0 invalid."],["It accepts a single or multi-band image as a mask, applying it to corresponding bands in the input image."],["The input image's metadata and footprint are preserved in the output."],["Floating point mask values (0-1) control pixel opacity during visualization."]]],["The `updateMask()` function modifies an image's existing mask. It takes a new mask as input, a floating-point image where 0 denotes invalid and 1 denotes valid pixels. When applied, the function updates all image pixels where the current mask is non-zero. The new mask can be single-band, affecting all input image bands, or multi-band, updating bands individually. Mask values between 0 and 1 indicate partial transparency. The output image keeps the input image's metadata and footprint.\n"]]