Click or drag to resize

CvOptFlowCalcGlobalOrientation Method

Computes the global orientation of the selected motion history image part

Namespace:  OpenCvSharp.OptFlow
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
public static double CalcGlobalOrientation(
	InputArray orientation,
	InputArray mask,
	InputArray mhi,
	double timestamp,
	double duration
)

Parameters

orientation
Type: OpenCvSharpInputArray
Motion gradient orientation image calculated by the function CalcMotionGradient() .
mask
Type: OpenCvSharpInputArray
Mask image. It may be a conjunction of a valid gradient mask, also calculated by CalcMotionGradient() , and the mask of a region whose direction needs to be calculated.
mhi
Type: OpenCvSharpInputArray
Motion history image calculated by UpdateMotionHistory() .
timestamp
Type: SystemDouble
Timestamp passed to UpdateMotionHistory() .
duration
Type: SystemDouble
Maximum duration of a motion track in milliseconds, passed to UpdateMotionHistory() .

Return Value

Type: Double
See Also