ee.Image.distance

Computes the distance to the nearest non-zero pixel in each band, using the specified distance kernel.

UsageReturns
Image.distance(kernel, skipMasked)Image
ArgumentTypeDetails
this: imageImage

The input image.

kernelKernel, default: null

The distance kernel.

skipMaskedBoolean, default: true

Mask output pixels if the corresponding input pixel is masked.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!