Table of Contents

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

src InputArray

The source image

dst OutputArray

The destination image; will have the same size and the same number of channels as src

ddepth MatType

The destination image depth

xorder int

Order of the derivative x

yorder int

Order of the derivative y

ksize int

Size of the extended Sobel kernel, must be 1, 3, 5 or 7

scale double

The optional scale factor for the computed derivative values (by default, no scaling is applied

delta double

The optional delta value, added to the results prior to storing them in dst

borderType BorderTypes

The pixel extrapolation method