Back to Adaptive Vision Studio website

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

cvUpdateMotionHistory


Module: OpenCV

Calculates the optical flow for two images by using the block matching method.

Name Type Range Description
inSilhouette Region Input region of motion
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.
outMhi Image Computed motion history.

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 cvUpdateMotionHistory.
DomainError inSilhouette must have this same size as inMhi in cvUpdateMotionHistory.

Complexity Level

This filter is available on Basic Complexity Level.