Cv2Sobel Method OpenCvSharp Class Library
Calculates the first, second, third or mixed image derivatives using an extended Sobel operator

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void Sobel(
	InputArray src,
	OutputArray dst,
	MatType ddepth,
	int xorder,
	int yorder,
	int ksize = 3,
	double scale = 1,
	double delta = 0,
	BorderType borderType = BorderType.Reflect101
)

Parameters

src
Type: OpenCvSharp.CPlusPlusInputArray
The source image
dst
Type: OpenCvSharp.CPlusPlusOutputArray
The destination image; will have the same size and the same number of channels as src
ddepth
Type: OpenCvSharp.CPlusPlusMatType
The destination image depth
xorder
Type: SystemInt32
Order of the derivative x
yorder
Type: SystemInt32
Order of the derivative y
ksize (Optional)
Type: SystemInt32
Size of the extended Sobel kernel, must be 1, 3, 5 or 7
scale (Optional)
Type: SystemDouble
The optional scale factor for the computed derivative values (by default, no scaling is applied
delta (Optional)
Type: SystemDouble
The optional delta value, added to the results prior to storing them in dst
borderType (Optional)
Type: OpenCvSharpBorderType
The pixel extrapolation method
See Also

Reference