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
orientationInputArrayMotion gradient orientation image calculated by the function CalcMotionGradient() .
maskInputArrayMask 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.
mhiInputArrayMotion history image calculated by UpdateMotionHistory() .
timestampdoubleTimestamp passed to UpdateMotionHistory() .
durationdoubleMaximum duration of a motion track in milliseconds, passed to UpdateMotionHistory() .