公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ee.Image.matrixSolve
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
在矩陣方程式 A * x = B 中求解 x,並為 image1 和 image2 中每個相符的頻帶對尋找最小平方解 (如果 A 過度決定)。如果 image1 或 image2 只有 1 個頻帶,則會與另一張圖片中的所有頻帶進行比較。如果圖片的波段數量相同,但名稱不同,系統會依自然順序成對使用。輸出頻帶會以較長的輸入命名,如果長度相同,則會以 image1 的順序命名。輸出像素的類型是輸入類型的聯集。
用量 | 傳回 |
---|
Image.matrixSolve(image2) | 圖片 |
引數 | 類型 | 詳細資料 |
---|
這個:image1 | 圖片 | 用來擷取左運算元頻帶的圖片。 |
image2 | 圖片 | 系統會從這張圖片擷取右運算元頻帶。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eSolves for x in the equation A * x = B using a least-squares approach for matching band pairs between two images.\u003c/p\u003e\n"],["\u003cp\u003eAccommodates single-band and multi-band images, pairing bands naturally or against all bands in the other image if necessary.\u003c/p\u003e\n"],["\u003cp\u003eOutput bands inherit names from the longer input or image1's order for equal lengths, with pixel type determined by the union of input types.\u003c/p\u003e\n"],["\u003cp\u003eAccessed via \u003ccode\u003eImage.matrixSolve(image2)\u003c/code\u003e, returning a new Image.\u003c/p\u003e\n"]]],["The `matrixSolve` method finds a least-squares solution for `x` in the equation A \\* x = B, where A is derived from `image1` and B from `image2`. It matches bands pairwise, or against all bands of the other image if one has a single band. Bands are matched in natural order if they share a count but not names. Output band names are derived from the longer input, or `image1` if lengths are equal, and output type is the union of input types.\n"],null,["# ee.Image.matrixSolve\n\nSolves for x in the matrix equation A \\* x = B, finding a least-squares solution if A is overdetermined 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.matrixSolve`(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. |"]]