public static Start ( RuntimeOptions options, int kinectIndex ) : |
||
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 |
/// <summary> /// Initializes a new instance of the <see cref="SkeletonTracking"/> class using the Kinect sensor at the specified index. /// </summary> /// <param name="sensorIndex">Index of the Kinect sensor to use.</param> public SkeletonTracking(int sensorIndex) : this(KinectSensor.Start(RuntimeOptions.UseSkeletalTracking, sensorIndex)) { Contract.Requires(sensorIndex >= 0 && sensorIndex < Runtime.Kinects.Count); }
/// <summary> /// Initializes a new instance of the <see cref="SkeletonTracking"/> class using the default Kinect sensor. /// </summary> public SkeletonTracking() : this(KinectSensor.Start(RuntimeOptions.UseSkeletalTracking)) { }