ee.Image.register
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ลงทะเบียนรูปภาพกับรูปภาพอ้างอิงในขณะที่อนุญาตให้มีการเปลี่ยนรูปในพื้นที่และแผ่นยาง การแทนที่คำนวณใน CRS ของรูปภาพอ้างอิงที่ระดับซึ่งกำหนดโดยความละเอียดต่ำสุดของการฉายภาพ 3 แบบต่อไปนี้ ได้แก่ การฉายภาพอินพุต การฉายภาพอ้างอิง และการฉายภาพที่ขอ จากนั้นจึงใช้การแทนที่กับรูปภาพอินพุตเพื่อลงทะเบียนกับรูปภาพอ้างอิง
การใช้งาน | การคืนสินค้า |
---|
Image.register(referenceImage, maxOffset, patchWidth, stiffness) | รูปภาพ |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ image | รูปภาพ | รูปภาพที่จะลงทะเบียน |
referenceImage | รูปภาพ | รูปภาพที่จะลงทะเบียน |
maxOffset | ทศนิยม | ออฟเซ็ตสูงสุดที่อนุญาตเมื่อพยายามจัดแนวรูปภาพอินพุตเป็นเมตร การใช้ค่าที่เล็กลงจะช่วยลดเวลาในการคำนวณได้อย่างมาก แต่ค่าดังกล่าวต้องมีขนาดใหญ่พอที่จะครอบคลุมการเคลื่อนที่ที่มากที่สุดภายในทั้งภูมิภาคของรูปภาพ |
patchWidth | ลอย ค่าเริ่มต้น: null | ขนาดแพตช์สำหรับการตรวจหาออฟเซ็ตของรูปภาพเป็นเมตร ควรตั้งค่านี้ให้ใหญ่พอที่จะจับภาพพื้นผิว รวมถึงใหญ่พอที่ออบเจ็กต์ที่ละเลยได้จะมีขนาดเล็กภายในแพตช์ ค่าเริ่มต้นคือ null ระบบจะกำหนดขนาดแพตช์โดยอัตโนมัติหากไม่ได้ระบุ |
stiffness | Float ค่าเริ่มต้น: 5 | บังคับใช้ข้อจำกัดความแข็งแกร่งกับโซลูชัน ค่าที่ใช้ได้อยู่ในช่วง [0,10] ความแข็งใช้สำหรับการปฏิเสธค่าผิดปกติเมื่อกำหนดการเคลื่อนที่ที่จุดกริดที่อยู่ติดกัน ค่าที่สูงขึ้นจะทำให้โซลูชันเปลี่ยนรูปแบบอย่างเข้มงวด ค่าที่ต่ำกว่าจะทำให้เกิดการบิดเบือนหรือการบิดงอของรูปภาพมากขึ้นในระหว่างการลงทะเบียน |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 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. |"]]