CvCalcMotionGradient Method (CvArr, CvArr, CvArr, Double, Double, ApertureSize) OpenCvSharp Class Library
Calculates gradient orientation of motion history image

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

public static void CalcMotionGradient(
	CvArr mhi,
	CvArr mask,
	CvArr orientation,
	double delta1,
	double delta2,
	ApertureSize apertureSize
)

Parameters

mhi
Type: OpenCvSharpCvArr
Motion history image
mask
Type: OpenCvSharpCvArr
Mask image; marks pixels where motion gradient data is correct. Output parameter.
orientation
Type: OpenCvSharpCvArr
Motion gradient orientation image; contains angles from 0 to ~360°.
delta1
Type: SystemDouble
The function finds minimum (m(x,y)) and maximum (M(x,y)) mhi values over each pixel (x,y) neihborhood and assumes the gradient is valid only if min(delta1,delta2) <= M(x,y)-m(x,y) <= max(delta1,delta2).
delta2
Type: SystemDouble
The function finds minimum (m(x,y)) and maximum (M(x,y)) mhi values over each pixel (x,y) neihborhood and assumes the gradient is valid only if min(delta1,delta2) <= M(x,y)-m(x,y) <= max(delta1,delta2).
apertureSize
Type: OpenCvSharpApertureSize
Aperture size of derivative operators used by the function: CV_SCHARR, 1, 3, 5 or 7 (see cvSobel).
See Also

Reference