C# Класс Emgu.CV.MotionHistory

The motion history class
For help on using this class, take a look at the Motion Detection example
Наследование: DisposableObject
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
DisposeObject ( ) : void

Release unmanaged resources

ReleaseManagedResources ( ) : void

Release any images associated with this object

Описание методов

DisposeObject() защищенный Метод

Release unmanaged resources
protected DisposeObject ( ) : void
Результат void

GetMotionComponents() публичный Метод

Get a sequence of motion component
public GetMotionComponents ( MemStorage storage ) : Seq
storage MemStorage The storage used by the motion components
Результат Seq

MotionHistory() публичный Метод

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.
Результат System

MotionHistory() публичный Метод

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
Результат System

MotionInfo() публичный Метод

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
Результат void

ReleaseManagedResources() защищенный Метод

Release any images associated with this object
protected ReleaseManagedResources ( ) : void
Результат void

Update() публичный Метод

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
Результат void

Update() публичный Метод

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
Результат void