ee.Image.displace

Warps an image using an image of displacements.

UsageReturns
Image.displace(displacement, mode, maxOffset)Image
ArgumentTypeDetails
this: imageImageThe image to warp.
displacementImageAn 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.
modeString, default: "bicubic"The interpolation mode to use. One of 'nearest_neighbor', 'bilinear', or 'bicubic'.
maxOffsetFloat, default: nullThe maximum absolute offset in the displacement image. Providing this may improve processing performance.