ee.Image.displacement
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
กำหนดการเคลื่อนที่ที่จำเป็นในการลงทะเบียนรูปภาพกับรูปภาพอ้างอิงในขณะที่อนุญาตให้มีการเปลี่ยนรูปแผ่นยางในพื้นที่ การแทนที่คำนวณใน CRS ของรูปภาพอ้างอิงที่ระดับซึ่งกำหนดโดยความละเอียดต่ำสุดของการฉายภาพ 3 แบบต่อไปนี้ ได้แก่ การฉายภาพอินพุต การฉายภาพอ้างอิง และการฉายภาพที่ขอ จากนั้นระบบจะแปลงการแทนที่เป็นการฉายภาพที่ผู้ใช้ระบุสำหรับเอาต์พุต
การใช้งาน | การคืนสินค้า |
---|
Image.displacement(referenceImage, maxOffset, projection, patchWidth, stiffness) | รูปภาพ |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ image | รูปภาพ | รูปภาพที่จะลงทะเบียน |
referenceImage | รูปภาพ | รูปภาพที่จะลงทะเบียน |
maxOffset | ทศนิยม | ออฟเซ็ตสูงสุดที่อนุญาตเมื่อพยายามจัดแนวรูปภาพอินพุตเป็นเมตร การใช้ค่าที่เล็กลงจะช่วยลดเวลาในการคำนวณได้อย่างมาก แต่ค่าดังกล่าวต้องมีขนาดใหญ่พอที่จะครอบคลุมการเคลื่อนที่ที่มากที่สุดภายในทั้งภูมิภาคของรูปภาพ |
projection | การฉายภาพ ค่าเริ่มต้น: null | การฉายภาพที่จะแสดงค่าการเคลื่อนที่ ค่าเริ่มต้นคือการฉายภาพแถบแรกของรูปภาพอ้างอิง |
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\u003eThis method calculates the displacements needed to align an image with a reference image, allowing for localized, flexible deformations.\u003c/p\u003e\n"],["\u003cp\u003eDisplacements are determined in the reference image's coordinate system and at a resolution based on the input, reference, and requested projections.\u003c/p\u003e\n"],["\u003cp\u003eUsers can specify a maximum offset for alignment, a projection for outputting displacements, a patch size for offset detection, and a stiffness parameter to control deformation.\u003c/p\u003e\n"],["\u003cp\u003eThe output is an image containing the calculated displacement values, which can be used to warp or transform the input image to match the reference image.\u003c/p\u003e\n"],["\u003cp\u003eUsing a smaller \u003ccode\u003emaxOffset\u003c/code\u003e value can speed up computation but must be sufficient to cover the largest displacement within the image.\u003c/p\u003e\n"]]],[],null,["# ee.Image.displacement\n\nDetermines displacements required to register 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 are then transformed into the user-specified projection for output.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------------------------------------------------------------------------|---------|\n| Image.displacement`(referenceImage, maxOffset, `*projection* `, `*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| `projection` | Projection, default: null | The projection in which to output displacement values. The default is the projection of the first band of the reference image. |\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 not provided. |\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. |"]]