Announcement: On November 13, 2024, all users will need to use a Cloud project in order to access Earth Engine. After this date, continued individual access without a Cloud project will require an exception.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-13 UTC."],[[["Warps an image based on displacement values provided by a separate image."],["Uses the first and second bands of the displacement image as X and Y displacement vectors respectively."],["Offers three interpolation modes: nearest neighbor, bilinear, and bicubic for resampling."],["Allows specifying a maximum offset to potentially enhance processing performance."]]],[]]