C# Class Emgu.CV.MotionHistory

The motion history class
For help on using this class, take a look at the Motion Detection example
Inheritance: DisposableObject
Afficher le fichier Open project: fajoy/RTSPExample Class Usage Examples

Méthodes publiques

Méthode Description
GetMotionComponents ( MemStorage storage ) : Seq

Get a sequence of motion component

MotionHistory ( double mhiDuration, double maxTimeDelta, double minTimeDelta ) : System

Create a motion history object

MotionHistory ( double mhiDuration, double maxTimeDelta, double minTimeDelta, System.DateTime startTime ) : System

Create a motion history object

MotionInfo ( System motionRectangle, double &angle, double &motionPixelCount ) : void

Given a rectagle area of the motion, output the angle of the motion and the number of pixels that are considered to be motion pixel

Update ( Byte>.Image image ) : void

Update the motion history with the specific image and current timestamp

Update ( Byte>.Image foregroundMask, System.DateTime timestamp ) : void

Update the motion history with the specific image and the specific timestamp

Méthodes protégées

Méthode Description
DisposeObject ( ) : void

Release unmanaged resources

ReleaseManagedResources ( ) : void

Release any images associated with this object

Method Details

DisposeObject() protected méthode

Release unmanaged resources
protected DisposeObject ( ) : void
Résultat void

GetMotionComponents() public méthode

Get a sequence of motion component
public GetMotionComponents ( MemStorage storage ) : Seq
storage MemStorage The storage used by the motion components
Résultat Seq

MotionHistory() public méthode

Create a motion history object
public MotionHistory ( double mhiDuration, double maxTimeDelta, double minTimeDelta ) : System
mhiDuration double In second, the duration of motion history you wants to keep
maxTimeDelta double In second. Any change happens between a time interval greater than this will not be considerred
minTimeDelta double In second. Any change happens between a time interval smaller than this will not be considerred.
Résultat System

MotionHistory() public méthode

Create a motion history object
public MotionHistory ( double mhiDuration, double maxTimeDelta, double minTimeDelta, System.DateTime startTime ) : System
mhiDuration double In second, the duration of motion history you wants to keep
maxTimeDelta double In second. Any change happens between a time interval larger than this will not be considerred
minTimeDelta double In second. Any change happens between a time interval smaller than this will not be considerred.
startTime System.DateTime The start time of the motion history
Résultat System

MotionInfo() public méthode

Given a rectagle area of the motion, output the angle of the motion and the number of pixels that are considered to be motion pixel
public MotionInfo ( System motionRectangle, double &angle, double &motionPixelCount ) : void
motionRectangle System The rectangle area of the motion
angle double The orientation of the motion
motionPixelCount double Number of motion pixels within silhoute ROI
Résultat void

ReleaseManagedResources() protected méthode

Release any images associated with this object
protected ReleaseManagedResources ( ) : void
Résultat void

Update() public méthode

Update the motion history with the specific image and current timestamp
public Update ( Byte>.Image image ) : void
image Byte>.Image The image to be added to history
Résultat void

Update() public méthode

Update the motion history with the specific image and the specific timestamp
public Update ( Byte>.Image foregroundMask, System.DateTime timestamp ) : void
foregroundMask Byte>.Image The foreground of the image to be added to history
timestamp System.DateTime The time when the image is captured
Résultat void