C# Class Accord.Controls.Vision.HeadController

Head-based tracking controller.
Inheritance: System.ComponentModel.Component, IBindableComponent, INotifyPropertyChanged, IVideoSource
Show file Open project: accord-net/framework Class Usage Examples

Private Properties

Property Type Description
computeCurrentPosition void
source_NewFrame void
videoSource_PlayingFinished void
videoSource_VideoSourceError void

Public Methods

Method Description
Calibrate ( HeadMovement movement ) : void

Calibrates the specified movement using current positions.

HeadController ( ) : Accord.Math

Initializes a new instance of the HeadController class.

Reset ( ) : void

Resets the controller.

SignalToStop ( ) : void

Signal the video source to stop.

Start ( ) : void

Starts processing the video source.

Stop ( ) : void

Stops the video source.

WaitForStop ( ) : void

Waits until the video source has stopped.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the T:System.ComponentModel.Component and optionally releases the managed resources.

OnHeadEnter ( HeadEventArgs args ) : void

Called when a face enters the scene.

OnHeadLeave ( EventArgs args ) : void

Called when the face being tracked leaves the scene.

OnHeadMove ( HeadEventArgs args ) : void

Called when a head movement is detected.

OnPropertyChanged ( string name ) : void

Called when [property changed].

Private Methods

Method Description
computeCurrentPosition ( ) : void
source_NewFrame ( object sender, NewFrameEventArgs eventArgs ) : void
videoSource_PlayingFinished ( object sender, ReasonToFinishPlaying reason ) : void
videoSource_VideoSourceError ( object sender, VideoSourceErrorEventArgs eventArgs ) : void

Method Details

Calibrate() public method

Calibrates the specified movement using current positions.
public Calibrate ( HeadMovement movement ) : void
movement HeadMovement The movement to be calibrated.
return void

Dispose() protected method

Releases the unmanaged resources used by the T:System.ComponentModel.Component and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged /// resources; false to release only unmanaged resources.
return void

HeadController() public method

Initializes a new instance of the HeadController class.
public HeadController ( ) : Accord.Math
return Accord.Math

OnHeadEnter() protected method

Called when a face enters the scene.
protected OnHeadEnter ( HeadEventArgs args ) : void
args HeadEventArgs
return void

OnHeadLeave() protected method

Called when the face being tracked leaves the scene.
protected OnHeadLeave ( EventArgs args ) : void
args System.EventArgs
return void

OnHeadMove() protected method

Called when a head movement is detected.
protected OnHeadMove ( HeadEventArgs args ) : void
args HeadEventArgs
return void

OnPropertyChanged() protected method

Called when [property changed].
protected OnPropertyChanged ( string name ) : void
name string The name.
return void

Reset() public method

Resets the controller.
public Reset ( ) : void
return void

SignalToStop() public method

Signal the video source to stop.
public SignalToStop ( ) : void
return void

Start() public method

Starts processing the video source.
public Start ( ) : void
return void

Stop() public method

Stops the video source.
public Stop ( ) : void
return void

WaitForStop() public method

Waits until the video source has stopped.
public WaitForStop ( ) : void
return void