http://www.emgu.com
Updates the motion history image as following: mhi(x,y)=timestamp if silhouette(x,y)!=0 0 if silhouette(x,y)=0 and mhi(x,y)<timestamp-duration mhi(x,y) otherwise That is, MHI pixels where motion occurs are set to the current timestamp, while the pixels where motion happened far ago are cleared.

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.10.1935 (2.4.10.1935)

Syntax

C#
public static void cvUpdateMotionHistory(
	IntPtr silhouette,
	IntPtr mhi,
	double timestamp,
	double duration
)
Visual Basic
Public Shared Sub cvUpdateMotionHistory ( 
	silhouette As IntPtr,
	mhi As IntPtr,
	timestamp As Double,
	duration As Double
)
Visual C++
public:
static void cvUpdateMotionHistory(
	IntPtr silhouette, 
	IntPtr mhi, 
	double timestamp, 
	double duration
)
F#
static member cvUpdateMotionHistory : 
        silhouette : IntPtr * 
        mhi : IntPtr * 
        timestamp : float * 
        duration : float -> unit 

Parameters

silhouette
Type: System..::..IntPtr
Silhouette mask that has non-zero pixels where the motion occurs.
mhi
Type: System..::..IntPtr
Motion history image, that is updated by the function (single-channel, 32-bit floating-point)
timestamp
Type: System..::..Double
Current time in milliseconds or other units.
duration
Type: System..::..Double
Maximal duration of motion track in the same units as timestamp.

See Also