ee.Image.translate
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แปลรูปภาพอินพุต
การใช้งาน | การคืนสินค้า |
---|
Image.translate(x, y, units, proj) | รูปภาพ |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ input | รูปภาพ | |
x | ทศนิยม | จำนวนที่จะแปลรูปภาพในทิศทาง x |
y | ทศนิยม | จำนวนที่จะแปลรูปภาพในทิศทาง y |
units | สตริง ค่าเริ่มต้น: "meters" | หน่วยสำหรับ x และ y ซึ่งได้แก่ "เมตร" หรือ "พิกเซล" |
proj | การฉายภาพ ค่าเริ่มต้น: null | การฉายภาพที่จะใช้แปลรูปภาพ โดยค่าเริ่มต้นจะเป็นการฉายภาพของแถบแรก |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eThe \u003ccode\u003eImage.translate()\u003c/code\u003e method shifts an image by a specified distance in the x and y directions.\u003c/p\u003e\n"],["\u003cp\u003eTranslation can be performed using either pixel or meter units, with meters being the default.\u003c/p\u003e\n"],["\u003cp\u003eUsers can optionally define the projection for the translation, which defaults to the projection of the image's first band.\u003c/p\u003e\n"]]],["The core function described is `Image.translate(x, y, units, proj)`, which shifts an image spatially. It takes `x` and `y` values (floats) to define the translation amount in each direction. The `units` parameter specifies whether `x` and `y` are in 'meters' or 'pixels' (default is 'meters'). An optional `proj` argument can be used to define the translation projection, defaulting to the first band's projection. The function returns a translated `Image`.\n"],null,["# ee.Image.translate\n\nTranslate the input image.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------|---------|\n| Image.translate`(x, y, `*units* `, `*proj*`)` | Image |\n\n| Argument | Type | Details |\n|---------------|---------------------------|-----------------------------------------------------------------------------------------------|\n| this: `input` | Image | |\n| `x` | Float | The amount to translate the image in the x direction. |\n| `y` | Float | The amount to translate the image in the y direction. |\n| `units` | String, default: \"meters\" | The units for x and y; 'meters' or 'pixels'. |\n| `proj` | Projection, default: null | The projection in which to translate the image; defaults to the projection of the first band. |"]]