Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Gradient magnitude and direction of an image

`[`

performs
the operation on a GPU. The input image and the return values are
gpuArrays. This syntax requires the Parallel Computing Toolbox™.`gpuarrayGmag`

,`gpuarrayGdir`

]
= imgradient(`gpuarrayI`

,___)

`[`

returns
the gradient magnitude and direction using directional gradients along
the `Gmag`

,`Gdir`

]
= imgradient(`Gx`

`Gy`

)*x*-axis, `Gx`

, and the *y*-axis, `Gy`

,
such as that returned by `imgradientxy`

. The *x*-axis
points in the direction of increasing column subscripts and the *y*-axis
points in the direction of increasing row subscripts.

`[`

performs
the operation on a GPU. The input `gpuarrayGmag`

,`gpuarrayGdir`

]
= imgradient(`gpuarrayGx`

,`gpuarrayGy`

)*x* and *y* gradients
and the return values are gpuArrays. This syntax requires the Parallel Computing Toolbox.

`edge`

| `fspecial`

| `gpuArray`

| `gpuArray`

| `imgradient3`

| `imgradientxy`

| `imgradientxyz`

Was this topic helpful?