ee.Image.gradient
Calculates the x and y gradient.
Usage | Returns |
---|
Image.gradient() | Image |
Argument | Type | Details |
---|
this: input | Image | The input image. |
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 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["Calculates the x and y gradient of an image, returning a new image that represents the gradient."],["The function, `Image.gradient()`, takes one argument: the input image to calculate the gradient from."]]],["The function `gradient()` computes the x and y gradients of an input image. It takes one argument, `input`, which is the image to process. The function then returns a new image representing the calculated gradients. This new image will be the result of applying the gradient calculation to the provided input image.\n"]]