Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Image.derivative
Stay organized with collections
Save and categorize content based on your preferences.
Computes the X and Y discrete derivatives for each band in the input image, in pixel coordinates.
For each band of the input image, the output image will have two bands named with the suffixes _x
and _y
, containing the respective derivatives.
Usage | Returns | Image.derivative() | Image |
Argument | Type | Details | this: image | 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 derivatives for each band of an input image, providing separate output bands for each derivative.\u003c/p\u003e\n"],["\u003cp\u003eThe function \u003ccode\u003eImage.derivative()\u003c/code\u003e processes an image and returns a new image containing the derivative information, denoted by suffixes \u003ccode\u003e_x\u003c/code\u003e and \u003ccode\u003e_y\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eDerivative calculations are performed in pixel coordinates, reflecting the change in pixel values across the image.\u003c/p\u003e\n"]]],[],null,["# ee.Image.derivative\n\nComputes the X and Y discrete derivatives for each band in the input image, in pixel coordinates.\n\n\u003cbr /\u003e\n\nFor each band of the input image, the output image will have two bands named with the suffixes `_x` and `_y`, containing the respective derivatives.\n\n| Usage | Returns |\n|----------------------|---------|\n| Image.derivative`()` | Image |\n\n| Argument | Type | Details |\n|---------------|-------|------------------|\n| this: `image` | Image | The input image. |"]]