公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ee.Image.min
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
針對 image1 和 image2 中每個相符的頻帶配對,選取第一個和第二個值的最小值。如果 image1 或 image2 只有 1 個頻帶,則會與另一張圖片中的所有頻帶進行比較。如果圖片的波段數量相同,但名稱不同,系統會依自然順序成對使用。輸出頻帶會以較長的輸入命名,如果長度相同,則會以 image1 的順序命名。輸出像素的類型是輸入類型的聯集。
引數 | 類型 | 詳細資料 |
---|
這個:image1 | 圖片 | 用來擷取左運算元頻帶的圖片。 |
image2 | 圖片 | 系統會從這張圖片擷取右運算元頻帶。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eReturns the minimum pixel values between two images, comparing corresponding bands.\u003c/p\u003e\n"],["\u003cp\u003eIf the images have different band counts, single-band images are compared against all bands of the multi-band image.\u003c/p\u003e\n"],["\u003cp\u003eOutput bands are named using the longer image's band names, prioritizing the first image in case of equal length.\u003c/p\u003e\n"],["\u003cp\u003eOutput pixel type is determined by combining the input pixel types to accommodate all possible values.\u003c/p\u003e\n"]]],["The `min` operation compares two images (`image1`, `image2`) band-wise. It computes the minimum value for each corresponding band pair. If one image has a single band, that band is compared against all bands of the other. If both images have multiple bands, they're paired in order. Output band names come from the longer input, or `image1` if equal. Output pixel type is the combination of the input pixel types. The output is an image.\n"],null,["# ee.Image.min\n\nSelects the minimum of the first and second values for each matched pair of bands in image1 and image2. If either image1 or image2 has only 1 band, then it is used against all the bands in the other image. If the images have the same number of bands, but not the same names, they're used pairwise in the natural order. The output bands are named for the longer of the two inputs, or if they're equal in length, in image1's order. The type of the output pixels is the union of the input types.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------|---------|\n| Image.min`(image2)` | Image |\n\n| Argument | Type | Details |\n|----------------|-------|---------------------------------------------------------|\n| this: `image1` | Image | The image from which the left operand bands are taken. |\n| `image2` | Image | The image from which the right operand bands are taken. |"]]