Click or drag to resize

Cv2SpatialGradient Method

Calculates the first order image derivative in both x and y using a Sobel operator

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static void SpatialGradient(
	InputArray src,
	OutputArray dx,
	OutputArray dy,
	int ksize = 3,
	BorderTypes borderType = BorderTypes.Reflect101
)

Parameters

src
Type: OpenCvSharpInputArray
input image.
dx
Type: OpenCvSharpOutputArray
output image with first-order derivative in x.
dy
Type: OpenCvSharpOutputArray
output image with first-order derivative in y.
ksize (Optional)
Type: SystemInt32
size of Sobel kernel. It must be 3.
borderType (Optional)
Type: OpenCvSharpBorderTypes
pixel extrapolation method
See Also