Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Image.gradient
Stay organized with collections
Save and categorize content based on your preferences.
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."],[[["\u003cp\u003eCalculates the x and y gradient of an image, returning a new image that represents the gradient.\u003c/p\u003e\n"],["\u003cp\u003eThe function, \u003ccode\u003eImage.gradient()\u003c/code\u003e, takes one argument: the input image to calculate the gradient from.\u003c/p\u003e\n"]]],["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"],null,["# ee.Image.gradient\n\nCalculates the x and y gradient.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------|---------|\n| Image.gradient`()` | Image |\n\n| Argument | Type | Details |\n|---------------|-------|------------------|\n| this: `input` | Image | The input image. |"]]