Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain access. If you have not verified by September 26, 2025, your access may be on hold.
ee.Image.displace
Stay organized with collections
Save and categorize content based on your preferences.
Warps an image using an image of displacements.
| Usage | Returns | Image.displace(displacement, mode, maxOffset) | Image |
| Argument | Type | Details | this: image | Image | The image to warp. |
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. |
mode | String, default: "bicubic" | The interpolation mode to use. One of 'nearest_neighbor', 'bilinear', or 'bicubic'. |
maxOffset | Float, default: null | The maximum absolute offset in the displacement image. Providing this may improve processing performance. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-13 UTC.
[null,null,["Last updated 2024-07-13 UTC."],[],[]]