ee.Image.register
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.
Đăng ký một hình ảnh vào hình ảnh tham chiếu trong khi cho phép biến dạng cục bộ, biến dạng theo kiểu tấm cao su. Độ dịch chuyển được tính toán trong CRS của hình ảnh tham chiếu, ở tỷ lệ do độ phân giải thấp nhất của 3 phép chiếu sau đây quyết định: phép chiếu hình ảnh đầu vào, phép chiếu hình ảnh tham chiếu và phép chiếu được yêu cầu. Sau đó, các độ dịch chuyển được áp dụng cho hình ảnh đầu vào để đăng ký với hình ảnh tham chiếu.
Cách sử dụng | Giá trị trả về |
---|
Image.register(referenceImage, maxOffset, patchWidth, stiffness) | Hình ảnh |
Đối số | Loại | Thông tin chi tiết |
---|
this: image | Hình ảnh | Hình ảnh cần đăng ký. |
referenceImage | Hình ảnh | Hình ảnh cần đăng ký. |
maxOffset | Số thực dấu phẩy động | Độ lệch tối đa được phép khi cố gắng căn chỉnh hình ảnh đầu vào, tính bằng mét. Việc sử dụng giá trị nhỏ hơn có thể giảm đáng kể thời gian tính toán, nhưng giá trị này vẫn phải đủ lớn để bao phủ độ dịch chuyển lớn nhất trong toàn bộ vùng hình ảnh. |
patchWidth | Float, mặc định: null | Kích thước mảng để phát hiện độ lệch hình ảnh, tính bằng mét. Bạn nên đặt kích thước này đủ lớn để chụp kết cấu, cũng như đủ lớn để các đối tượng có thể bỏ qua có kích thước nhỏ trong bản vá. Giá trị mặc định là rỗng. Kích thước bản vá sẽ được xác định tự động nếu không được cung cấp. |
stiffness | Độ chính xác đơn, mặc định: 5 | Buộc một ràng buộc độ cứng đối với giải pháp. Các giá trị hợp lệ nằm trong phạm vi [0,10]. Độ cứng được dùng để loại bỏ giá trị ngoại lệ khi xác định độ dịch chuyển tại các điểm lưới liền kề. Giá trị càng cao thì giải pháp càng tiến gần đến một phép biến đổi cứng. Giá trị thấp hơn cho phép hình ảnh bị biến dạng hoặc cong vênh nhiều hơn trong quá trình đăng ký. |
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\u003eRegisters an image to a reference image using local, rubber sheet deformations, allowing for flexible alignment.\u003c/p\u003e\n"],["\u003cp\u003eDisplacements are calculated in the reference image's Coordinate Reference System (CRS) and scaled based on the lowest resolution among the input, reference, and requested projections.\u003c/p\u003e\n"],["\u003cp\u003eUsers can control the maximum allowed offset for alignment and optionally specify patch size and stiffness for fine-tuning the registration process.\u003c/p\u003e\n"],["\u003cp\u003eThe function returns a registered image aligned with the reference image based on the computed displacements.\u003c/p\u003e\n"]]],["The `register` function aligns an input image to a reference image, accommodating local deformations. It computes displacements in the reference image's coordinate system at the lowest resolution of the input, reference, and requested projections. Key parameters include `maxOffset` (maximum allowed displacement), `patchWidth` (patch size for offset detection), and `stiffness` (controls image warping). The function then applies the computed displacements to the input image, returning the registered image.\n"],null,["# ee.Image.register\n\nRegisters an image to a reference image while allowing local, rubber sheet deformations. Displacements are computed in the CRS of the reference image, at a scale dictated by the lowest resolution of the following three projections: input image projection, reference image projection, and requested projection. The displacements then applied to the input image to register it with the reference.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------------------------------|---------|\n| Image.register`(referenceImage, maxOffset, `*patchWidth* `, `*stiffness*`)` | Image |\n\n| Argument | Type | Details |\n|------------------|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `image` | Image | The image to register. |\n| `referenceImage` | Image | The image to register to. |\n| `maxOffset` | Float | The maximum offset allowed when attempting to align the input images, in meters. Using a smaller value can reduce computation time significantly, but it must still be large enough to cover the greatest displacement within the entire image region. |\n| `patchWidth` | Float, default: null | Patch size for detecting image offsets, in meters. This should be set large enough to capture texture, as well as large enough that ignorable objects are small within the patch. Default is null. Patch size will be determined automatically if notprovided. |\n| `stiffness` | Float, default: 5 | Enforces a stiffness constraint on the solution. Valid values are in the range \\[0,10\\]. The stiffness is used for outlier rejection when determining displacements at adjacent grid points. Higher values move the solution towards a rigid transformation. Lower values allow more distortion or warping of the image during registration. |"]]