Table of Contents

Method CalcGlobalOrientation

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

CalcGlobalOrientation(InputArray, InputArray, InputArray, double, double)

Computes the global orientation of the selected motion history image part

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

Parameters

orientation InputArray

Motion gradient orientation image calculated by the function CalcMotionGradient() .

mask InputArray

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 InputArray

Motion history image calculated by UpdateMotionHistory() .

timestamp double

Timestamp passed to UpdateMotionHistory() .

duration double

Maximum duration of a motion track in milliseconds, passed to UpdateMotionHistory() .

Returns

double