OpenCvSharp.Cv2.CalcGlobalOrientation C# (CSharp) Method

CalcGlobalOrientation() public static method

Computes the global orientation of the selected motion history image part
public static CalcGlobalOrientation ( InputArray orientation, InputArray mask, InputArray mhi, double timestamp, double duration ) : double
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() .
return double
        public static double CalcGlobalOrientation(
            InputArray orientation, InputArray mask, InputArray mhi,
            double timestamp, double duration)
        {
            if (orientation == null)
                throw new ArgumentNullException(nameof(orientation));
            if (mask == null)
                throw new ArgumentNullException(nameof(mask));
            if (mhi == null)
                throw new ArgumentNullException(nameof(mhi));
            orientation.ThrowIfDisposed();
            mask.ThrowIfDisposed();
            mhi.ThrowIfDisposed();

            return NativeMethods.optflow_motempl_calcGlobalOrientation(
                orientation.CvPtr, mask.CvPtr, mhi.CvPtr, timestamp, duration);
        }
Cv2