ee.Image.matrixSolve
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Giải x trong phương trình ma trận A * x = B, tìm giải pháp bình phương tối thiểu nếu A được xác định quá mức cho mỗi cặp dải tần số trùng khớp trong image1 và image2. Nếu image1 hoặc image2 chỉ có 1 dải tần, thì dải tần đó sẽ được dùng cho tất cả các dải tần trong hình ảnh còn lại. Nếu các hình ảnh có cùng số lượng dải tần nhưng không có cùng tên, thì chúng sẽ được sử dụng theo cặp theo thứ tự tự nhiên. Các dải đầu ra được đặt tên theo dải đầu vào dài hơn trong hai dải đầu vào, hoặc nếu chúng có độ dài bằng nhau, thì theo thứ tự của image1. Loại pixel đầu ra là hợp của các loại đầu vào.
Cách sử dụng | Giá trị trả về |
---|
Image.matrixSolve(image2) | Hình ảnh |
Đối số | Loại | Thông tin chi tiết |
---|
this: image1 | Hình ảnh | Hình ảnh mà từ đó các dải toán hạng bên trái được lấy. |
image2 | Hình ảnh | Hình ảnh mà từ đó các dải toán hạng bên phải được lấy. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\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. |"]]