公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Image.translate
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
翻译输入图片。
用法 | 返回 |
---|
Image.translate(x, y, units, proj) | 图片 |
参数 | 类型 | 详细信息 |
---|
此:input | 图片 | |
x | 浮点数 | 图像在 x 方向上的平移量。 |
y | 浮点数 | 图片在 y 方向上的平移量。 |
units | 字符串,默认值:“meters” | x 和 y 的单位;“meters”或“pixels”。 |
proj | 投影,默认值:null | 用于转换图像的投影;默认值为第一个波段的投影。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\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. |"]]