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 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; } 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); }
public void Activate(MotionSensorDevice device) { }