CvCalcGlobalOrientation Method OpenCvSharp Class Library
Calculates global motion orientation of some selected region

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

public static double CalcGlobalOrientation(
	CvArr orientation,
	CvArr mask,
	CvArr mhi,
	double timestamp,
	double duration
)

Parameters

orientation
Type: OpenCvSharpCvArr
Motion gradient orientation image; calculated by the function cvCalcMotionGradient.
mask
Type: OpenCvSharpCvArr
Mask image. It may be a conjunction of valid gradient mask, obtained with cvCalcMotionGradient and mask of the region, whose direction needs to be calculated.
mhi
Type: OpenCvSharpCvArr
Motion history image
timestamp
Type: SystemDouble
Current time in milliseconds or other units, it is better to store time passed to cvUpdateMotionHistory before and reuse it here, because running cvUpdateMotionHistory and cvCalcMotionGradient on large images may take some time.
duration
Type: SystemDouble
Maximal duration of motion track in milliseconds, the same as in cvUpdateMotionHistory.

Return Value

Type: Double

[Missing <returns> documentation for "M:OpenCvSharp.Cv.CalcGlobalOrientation(OpenCvSharp.CvArr,OpenCvSharp.CvArr,OpenCvSharp.CvArr,System.Double,System.Double)"]

See Also

Reference