Calculates the first, second, third or mixed image derivatives using an extended Sobel operator
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic 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.Reflect101
)
Public Shared Sub Sobel (
src As InputArray,
dst As OutputArray,
ddepth As MatType,
xorder As Integer,
yorder As Integer,
Optional ksize As Integer = 3,
Optional scale As Double = 1,
Optional delta As Double = 0,
Optional borderType As BorderTypes = BorderTypes.Reflect101
)
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::Reflect101
)
static member Sobel :
src : InputArray *
dst : OutputArray *
ddepth : MatType *
xorder : int *
yorder : int *
?ksize : int *
?scale : float *
?delta : float *
?borderType : BorderTypes
(* Defaults:
let _ksize = defaultArg ksize 3
let _scale = defaultArg scale 1
let _delta = defaultArg delta 0
let _borderType = defaultArg borderType BorderTypes.Reflect101
*)
-> unit
OpenCvSharp.Cv2.Sobel = function(src, dst, ddepth, xorder, yorder, ksize, scale, delta, borderType);
Parameters
- src
- Type: OpenCvSharpInputArray
The source image - dst
- Type: OpenCvSharpOutputArray
The destination image; will have the same size and the same number of channels as src - ddepth
- Type: OpenCvSharpMatType
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: OpenCvSharpBorderTypes
The pixel extrapolation method
See Also