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
ファイルを表示 Open project: fajoy/RTSPExample Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
DisposeObject ( ) : void

Release unmanaged resources

ReleaseManagedResources ( ) : void

Release any images associated with this object

Method Details

DisposeObject() protected method

Release unmanaged resources
protected DisposeObject ( ) : void
return void

GetMotionComponents() public method

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

MotionHistory() public method

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.
return System

MotionHistory() public method

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
return System

MotionInfo() public method

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
return void

ReleaseManagedResources() protected method

Release any images associated with this object
protected ReleaseManagedResources ( ) : void
return void

Update() public method

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
return void

Update() public method

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
return void