Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » OpenCV » Video Analysis » cvCalcMotionGradient

cvCalcMotionGradient


Module: OpenCV

Calculates a gradient orientation of a motion history image.

Name Type Range Description
inMhi Image REAL, single-channel motion history image.
inDelta1 Real 0.0 - Minimal ,or maximal, allowed difference between mhi values within a pixel neighbourhood.
inDelta2 Real 0.0 - Maximal ,or minimal, allowed difference between mhi values within a pixel neighbourhood.
inApertureSize Integer 0 - Aperture size of sobel operator
outOrientation Image Output motion gradient orientation image that has the same type and the same size as mhi. Each pixel of the image is a motion orientation, from 0 to 360 degrees.
outMask Region Output region of correct motion gradient data.

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 Both inDelta1 and inDelta2 must be greater than 0.0 in cvCalcMotionGradient.
DomainError History image must be REAL single-channel in cvCalcMotionGradient.

Complexity Level

This filter is available on Basic Complexity Level.