公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Image.displace
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
使用位移图像扭曲图像。
用法 | 返回 |
---|
Image.displace(displacement, mode, maxOffset) | 图片 |
参数 | 类型 | 详细信息 |
---|
此:image | 图片 | 要扭曲的图片。 |
displacement | 图片 | 包含位移值的图片。第一个频段被解读为“X”位移,第二个频段被解读为“Y”位移。每个位移像素都是一个 [dx,dy] 向量,添加到像素位置以确定“图片”中的相应像素位置。位移被解读为位移图像默认投影中的米。 |
mode | 字符串,默认值:“bicubic” | 要使用的插值模式。可以是“nearest_neighbor”“bilinear”或“bicubic”。 |
maxOffset | 浮点数,默认值:null | 位移图片中的最大绝对偏移量。提供此信息可能会提高处理性能。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\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. |"]]