# ee.Image.gradient

Calculates the x and y gradient.

<br />

| Usage | Returns |
|---|---|
| `Image.gradient()` | Image |

| Argument | Type | Details |
|---|---|---|
| this: `input` | Image | The input image. |