Method Sobel
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Sobel(InputArray, OutputArray, MatType, int, int, int, double, double, BorderTypes)
Calculates the first, second, third or mixed image derivatives using an extended Sobel operator
public static void Sobel(InputArray src, OutputArray dst, MatType ddepth, int xorder, int yorder, int ksize = 3, double scale = 1, double delta = 0, BorderTypes borderType = BorderTypes.Default)
Parameters
srcInputArrayThe source image
dstOutputArrayThe destination image; will have the same size and the same number of channels as src
ddepthMatTypeThe destination image depth
xorderintOrder of the derivative x
yorderintOrder of the derivative y
ksizeintSize of the extended Sobel kernel, must be 1, 3, 5 or 7
scaledoubleThe optional scale factor for the computed derivative values (by default, no scaling is applied
deltadoubleThe optional delta value, added to the results prior to storing them in dst
borderTypeBorderTypesThe pixel extrapolation method