C# Class ObservableKinect.KinectSensor

Provides an interface to a single Kinect sensor with IObservables for all of its events
ファイルを表示 Open project: Aesir/ObservableKinect Class Usage Examples

Public Methods

Method Description
Start ( RuntimeOptions options, int kinectIndex ) : KinectSensor

Starts the Kinect with the specified options.

StartDepthFrames ( ImageResolution resolution, bool includePlayerIndex = false, int numBuffers = 2 ) : void

Starts acquisition of depth frames.

StartVideoFrames ( ImageResolution resolution, ImageType type = ImageType.Color, int numBuffers = 2 ) : void

Starts acquisition of video frames.

Protected Methods

Method Description
KinectSensor ( int index, RuntimeOptions options ) : System

Initializes a new instance of the KinectSensor class and initializes the attached Kinect device.

Private Methods

Method Description
AddRuntimeOptions ( KinectSensor sensor, RuntimeOptions options ) : void
ObjectInvariant ( ) : void

Method Details

KinectSensor() protected method

Initializes a new instance of the KinectSensor class and initializes the attached Kinect device.
protected KinectSensor ( int index, RuntimeOptions options ) : System
index int The index of the sensor to attach to.
options RuntimeOptions The options to apply to the sensor to start with.
return System

Start() public static method

Starts the Kinect with the specified options.
public static Start ( RuntimeOptions options, int kinectIndex ) : KinectSensor
options RuntimeOptions The options to run the Kinect with as a set of flags.
kinectIndex int Index of the Kinect device you want to start, unless you have multiple Kinects attached you want to use the default value of 0.
return KinectSensor

StartDepthFrames() public method

Starts acquisition of depth frames.
public StartDepthFrames ( ImageResolution resolution, bool includePlayerIndex = false, int numBuffers = 2 ) : void
resolution ImageResolution The resolution to use for the depth camera.
includePlayerIndex bool If set to true it includes the player index (id of tracked skeleton) in the event arguments.
numBuffers int The number of image buffers to use. A larger number results in smoother playback but more latency as well. Default is 2.
return void

StartVideoFrames() public method

Starts acquisition of video frames.
public StartVideoFrames ( ImageResolution resolution, ImageType type = ImageType.Color, int numBuffers = 2 ) : void
resolution ImageResolution The resolution to use for the video camera.
type ImageType The type of image to acquire between RGB and YAV.
numBuffers int The number of image buffers to use. A larger number results in smoother playback but more latency as well. Default is 2.
return void