Esempio n. 1
0
        /// <summary>
        /// Starts new replay.
        /// </summary>
        /// <param name="recordStream"></param>
        void Replay(Stream recordStream, Stream gtStream)
        {
            // Reset slider.
              frameSlider.Value = 0;

              if (gtStream != null)
            gtReplayer = new GroundTruthDataRelayer(gtStream);

              lock (this) {
            replay = new KinectAllFramesReplay(recordStream);
            frameSlider.Maximum = replay.GetFramesCount();

            handTracker = new SimpleSkeletonHandTracker(HandInputParams.DepthWidth,
            HandInputParams.DepthHeight, replay.GetKinectParams());
              }

              ResetGestureEngine();
              timer = new DispatcherTimer();
              timer.Interval = new TimeSpan(0, 0, 0, 0, (1000 / FPS));
              timer.Tick += new EventHandler(OnTimerTick);
              timer.Start();
        }
Esempio n. 2
0
        /// <summary>
        /// Starts new replay.
        /// </summary>
        /// <param name="recordStream"></param>
        void Replay(Stream recordStream, Stream gtStream)
        {
            // Reset slider.
            frameSlider.Value = 0;

            if (gtStream != null)
            {
                gtReplayer = new GroundTruthDataRelayer(gtStream);
            }

            lock (this) {
                replay = new KinectAllFramesReplay(recordStream);
                frameSlider.Maximum = replay.GetFramesCount();

                handTracker = new SimpleSkeletonHandTracker(HandInputParams.DepthWidth,
                                                            HandInputParams.DepthHeight, replay.GetKinectParams());
            }

            ResetGestureEngine();
            timer          = new DispatcherTimer();
            timer.Interval = new TimeSpan(0, 0, 0, 0, (1000 / FPS));
            timer.Tick    += new EventHandler(OnTimerTick);
            timer.Start();
        }