Method SpatialGradient
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
SpatialGradient(InputArray, OutputArray, OutputArray, int, BorderTypes)
Calculates the first order image derivative in both x and y using a Sobel operator
public static void SpatialGradient(InputArray src, OutputArray dx, OutputArray dy, int ksize = 3, BorderTypes borderType = BorderTypes.Default)
Parameters
srcInputArrayinput image.
dxOutputArrayoutput image with first-order derivative in x.
dyOutputArrayoutput image with first-order derivative in y.
ksizeintsize of Sobel kernel. It must be 3.
borderTypeBorderTypespixel extrapolation method