MATLAB File Help: cv.calcGlobalOrientation Index
cv.calcGlobalOrientation

Calculates a global motion orientation in a selected region

orient = cv.calcGlobalOrientation(orientation, mask, mhi, timestamp, duration)

Input

Output

The function calculates an average motion direction in the selected region and returns the angle between 0 degrees and 360 degrees. The average direction is computed from the weighted orientation histogram, where a recent motion has a larger weight and the motion occurred in the past has a smaller weight, as recorded in mhi.

See also