ee.Image.displace
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
บิดรูปภาพโดยใช้รูปภาพของการเคลื่อนที่
การใช้งาน | การคืนสินค้า |
---|
Image.displace(displacement, mode, maxOffset) | รูปภาพ |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ image | รูปภาพ | รูปภาพที่จะบิด |
displacement | รูปภาพ | รูปภาพที่มีค่าการแทนที่ แถบแรกจะตีความเป็นระยะเคลื่อนที่ "X" และแถบที่ 2 จะตีความเป็นระยะเคลื่อนที่ "Y" พิกเซลการแทนที่แต่ละพิกเซลคือเวกเตอร์ [dx,dy] ที่เพิ่มลงในตำแหน่งพิกเซลเพื่อกำหนดตำแหน่งพิกเซลที่สอดคล้องกันใน "รูปภาพ" การแทนที่จะได้รับการตีความเป็นเมตรในการฉายภาพเริ่มต้นของรูปภาพการแทนที่ |
mode | สตริง ค่าเริ่มต้น: "bicubic" | โหมดการประมาณค่าที่จะใช้ โดยอาจเป็น "nearest_neighbor", "bilinear" หรือ "bicubic" |
maxOffset | ลอย ค่าเริ่มต้น: null | ออฟเซ็ตสัมบูรณ์สูงสุดในรูปภาพการแทนที่ การระบุข้อมูลนี้อาจช่วยปรับปรุงประสิทธิภาพการประมวลผลได้ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eWarps an image using a displacement image, where pixel values in the displacement image represent the shift in position for the corresponding pixels in the original image.\u003c/p\u003e\n"],["\u003cp\u003eThe displacement image contains two bands, representing the X and Y displacement values for each pixel in the original image.\u003c/p\u003e\n"],["\u003cp\u003eUsers can control the interpolation mode for warping, choosing from options such as 'nearest_neighbor', 'bilinear', or 'bicubic'.\u003c/p\u003e\n"],["\u003cp\u003eOptionally, users can specify a maximum offset value for performance optimization during the warping process.\u003c/p\u003e\n"]]],[],null,["# ee.Image.displace\n\nWarps an image using an image of displacements.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------------------------------|---------|\n| Image.displace`(displacement, `*mode* `, `*maxOffset*`)` | Image |\n\n| Argument | Type | Details |\n|----------------|----------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `image` | Image | The image to warp. |\n| `displacement` | Image | An image containing displacement values. The first band is interpreted as the 'X' displacement and the second as the 'Y' displacement. Each displacement pixel is a \\[dx,dy\\] vector added to the pixel location to determine the corresponding pixel location in 'image'. Displacements are interpreted as meters in the default projection of the displacement image. |\n| `mode` | String, default: \"bicubic\" | The interpolation mode to use. One of 'nearest_neighbor', 'bilinear', or 'bicubic'. |\n| `maxOffset` | Float, default: null | The maximum absolute offset in the displacement image. Providing this may improve processing performance. |"]]