Start() 공개 정적인 메소드

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.
리턴 KinectSensor
예제 #1
0
 /// <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);
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SkeletonTracking"/> class using the default Kinect sensor.
 /// </summary>
 public SkeletonTracking()
     : this(KinectSensor.Start(RuntimeOptions.UseSkeletalTracking))
 {
 }