Beispiel #1
0
 private void InitializeKinectPlus()
 {
     this.SensorPlus = new KinectSensorPlus(mainWindow.Sensor);
     this.SensorPlus.CurrViewType = ViewEnum.FullView;
     this.SensorPlus.activeRecognizer = new Recognizer();
     this.SensorPlus.activeRecognizer.SwipeLeftDetected += new EventHandler<KinectGestureEventArgs>(OnSwipeLeftDetected);
     this.SensorPlus.activeRecognizer.SwipeRightDetected += new EventHandler<KinectGestureEventArgs>(OnSwipeRightDetected);
 }
 private void InitializeKinectPlus()
 {
     this.SensorPlus = new KinectSensorPlus(mainWindow.Sensor);
     this.SensorPlus.CurrViewType = ViewEnum.CameraView;
     this.SensorPlus.DrawSkeletonAndFingers = OnDrawSkeletonAndFingers;
     this.SensorPlus.PlayPiano = OnPlayPiano;
     this.ImgCurrent.Source = this.SensorPlus.ColorBitmap;
     //Inititialize Dict
     Dict = new Dictionary<FingerType, List<PointSkeleton3D>>();
     Dict.Add(FingerType.ThumbRight, new List<PointSkeleton3D>(200));
     Dict.Add(FingerType.IndexRight, new List<PointSkeleton3D>(200));
     Dict.Add(FingerType.MiddleRight, new List<PointSkeleton3D>(200));
     Dict.Add(FingerType.RingRight, new List<PointSkeleton3D>(200));
     Dict.Add(FingerType.LittleRight, new List<PointSkeleton3D>(200));
 }