C# Class ObservableKinect.KinectSensor

Provides an interface to a single Kinect sensor with IObservables for all of its events
Afficher le fichier Open project: Aesir/ObservableKinect Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
KinectSensor ( int index, RuntimeOptions options ) : System

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

Private Methods

Méthode Description
AddRuntimeOptions ( KinectSensor sensor, RuntimeOptions options ) : void
ObjectInvariant ( ) : void

Method Details

KinectSensor() protected méthode

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.
Résultat System

Start() public static méthode

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.
Résultat KinectSensor

StartDepthFrames() public méthode

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.
Résultat void

StartVideoFrames() public méthode

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.
Résultat void