公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ee.Image.matrixMultiply
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
針對 image1 和 image2 中每個相符的波段組合,傳回矩陣乘法 A * B。如果 image1 或 image2 只有 1 個頻帶,則會與另一張圖片中的所有頻帶進行比較。如果圖片的波段數量相同,但名稱不同,系統會依自然順序成對使用。輸出頻帶會以較長的輸入命名,如果長度相同,則會以 image1 的順序命名。輸出像素的類型是輸入類型的聯集。
用量 | 傳回 |
---|
Image.matrixMultiply(image2) | 圖片 |
引數 | 類型 | 詳細資料 |
---|
這個:image1 | 圖片 | 用來擷取左運算元頻帶的圖片。 |
image2 | 圖片 | 系統會從這張圖片擷取右運算元頻帶。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eComputes the matrix product of corresponding bands in two input images, \u003ccode\u003eimage1\u003c/code\u003e and \u003ccode\u003eimage2\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIf either input image has a single band, it's multiplied with all bands of the other image.\u003c/p\u003e\n"],["\u003cp\u003eOutput image bands are named based on the input with more bands, prioritizing \u003ccode\u003eimage1\u003c/code\u003e in case of equal band counts.\u003c/p\u003e\n"],["\u003cp\u003eThe output pixel type is determined by finding the most inclusive type that can represent all input pixel types.\u003c/p\u003e\n"]]],[],null,["# ee.Image.matrixMultiply\n\nReturns the matrix multiplication A \\* B 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.matrixMultiply`(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. |"]]