Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Video Analysis » cvCalcGlobalOrientation

cvCalcGlobalOrientation


Calculates a global motion orientation in a selected region.

Name Type Range Description
inOrientation Image Motion gradient orientation image calculated by the function calcMotionGradient.
inMask Region Region whose direction needs to be calculated.
inMhi Image REAL, single-channel motion history image.
inTimestamp Real 0.0 - Current time in milliseconds or other units.
inDuration Real 0.0 - Maximal duration of the motion track in the same units as timestamp.
outGlobalOrientation Real Calculated global orientation.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError History image must be Real single-channel in cvCalcGlobalOrientation.
DomainError inMask size must be equal to inOrientation size in cvCalcGlobalOrientation.

Complexity Level

This filter is available on Basic Complexity Level.