예제 #1
0
 private void UpdateFrameViewer(MotionSensorDevice device, MotionFrame frame)
 {
     if (CurrentFrameViewer != null)
     {
         CurrentFrameViewer.UpdateMotionFrame(device, frame);
     }
 }
 public void Activate(MotionSensorDevice device)
 {
     pointCloudImage.Init(device.Configuration);
     if (!pointCloudImage.IsRenderingActive)
     {
         pointCloudImage.StartRendering();
     }
     pointCloudImage.Visibility = System.Windows.Visibility.Visible;
 }
 public void Activate(MotionSensorDevice device)
 {
     pointCloudImage.Init(device.Configuration);
     if (!pointCloudImage.IsRenderingActive)
     {
         pointCloudImage.StartRendering();
     }
     pointCloudImage.Visibility = System.Windows.Visibility.Visible;
 }
        public void UpdateMotionFrame(MotionSensorDevice device, MotionFrame frame)
        {
            if (!Dispatcher.CheckAccess())
            {
                Dispatcher.BeginInvoke((Action)delegate
                {
                    UpdateMotionFrame(device, frame);
                });
                return;
            }

            depthImage.Source = frame.DepthFrame.AsDepthUserBitmapSource(frame.UserFrame);
            rgbImage.Source = frame.RGBFrame.AsRgbBitmapSource();
            skeletonImage.Source = frame.Skeletons.AsSkeletonBitmapSource(device, frame.DepthFrame.Width, frame.DepthFrame.Height);
        }
예제 #5
0
        public void UpdateMotionFrame(MotionSensorDevice device, MotionFrame frame)
        {
            if (!Dispatcher.CheckAccess())
            {
                Dispatcher.BeginInvoke((Action) delegate
                {
                    UpdateMotionFrame(device, frame);
                });
                return;
            }

            depthImage.Source    = frame.DepthFrame.AsDepthUserBitmapSource(frame.UserFrame);
            rgbImage.Source      = frame.RGBFrame.AsRgbBitmapSource();
            skeletonImage.Source = frame.Skeletons.AsSkeletonBitmapSource(device, frame.DepthFrame.Width, frame.DepthFrame.Height);
        }
        public void UpdateMotionFrame(MotionSensorDevice device, MotionFrame frame)
        {
            if (!Dispatcher.CheckAccess())
            {
                Dispatcher.BeginInvoke((Action) delegate
                {
                    UpdateMotionFrame(device, frame);
                });
                return;
            }

            if (!pointCloudImage.IsInitialized)
            {
                Activate(device);
            }
            pointCloudImage.SetMotionFrame(frame);
        }
        public void UpdateMotionFrame(MotionSensorDevice device, MotionFrame frame)
        {
            if (!Dispatcher.CheckAccess())
            {
                Dispatcher.BeginInvoke((Action)delegate
                {
                    UpdateMotionFrame(device, frame);
                });
                return;
            }

            if (!pointCloudImage.IsInitialized)
            {
                Activate(device);
            }
            pointCloudImage.SetMotionFrame(frame);
        }
        private void UpdateFrameViewer(MotionSensorDevice device, MotionFrame frame)
        {
            if (CurrentFrameViewer != null)
            {
                CurrentFrameViewer.UpdateMotionFrame(device, frame);

            }
        }
 public void Activate(MotionSensorDevice device)
 {
 }
예제 #10
0
 public void Activate(MotionSensorDevice device)
 {
 }