Click or drag to resize

CvInvokeSpatialGradient Method

http://www.emgu.com
Calculates the first order image derivative in both x and y using a Sobel operator. Equivalent to calling: Sobel(src, dx, CV_16SC1, 1, 0, 3 ); Sobel(src, dy, CV_16SC1, 0, 1, 3 );

Namespace:  Emgu.CV
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntax
public static void SpatialGradient(
	IInputArray src,
	IOutputArray dx,
	IOutputArray dy,
	int ksize = 3,
	BorderType borderType = BorderType.Reflect101
)

Parameters

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