CvInvokeUpdateMotionHistory Method |
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.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic static void UpdateMotionHistory(
IInputArray silhouette,
IInputOutputArray mhi,
double timestamp,
double duration
)
Public Shared Sub UpdateMotionHistory (
silhouette As IInputArray,
mhi As IInputOutputArray,
timestamp As Double,
duration As Double
)
public:
static void UpdateMotionHistory(
IInputArray^ silhouette,
IInputOutputArray^ mhi,
double timestamp,
double duration
)
static member UpdateMotionHistory :
silhouette : IInputArray *
mhi : IInputOutputArray *
timestamp : float *
duration : float -> unit
Parameters
- silhouette
- Type: Emgu.CVIInputArray
Silhouette mask that has non-zero pixels where the motion occurs. - mhi
- Type: Emgu.CVIInputOutputArray
Motion history image, that is updated by the function (single-channel, 32-bit floating-point) - timestamp
- Type: SystemDouble
Current time in milliseconds or other units. - duration
- Type: SystemDouble
Maximal duration of motion track in the same units as timestamp.
See Also