private void M_kinectHelper_ImagesArrived(object sender, KinectFrameArgs e) { Dispatcher.Invoke(new Action(() => UpdatePollTime())); if (e.TypeArrived.Equals(FrameType.Alignment)) { Dispatcher.Invoke(new Action(() => m_depthImage = e.DepthImage)); Dispatcher.Invoke(new Action(() => Al_Image.Source = m_depthImage)); Dispatcher.Invoke(new Action(() => AutoCalibrator(e.pointCloudV3))); } else if (e.TypeArrived.Equals(FrameType.Calibration)) { Dispatcher.Invoke(new Action(() => m_depthImage = e.DepthImage)); Dispatcher.Invoke(new Action(() => Cal_Image.Source = m_depthImage)); } else if (e.TypeArrived.Equals(FrameType.Full)) { Dispatcher.Invoke(new Action(() => m_colorImage = e.ColorImage)); Dispatcher.Invoke(new Action(() => m_depthImage = e.DepthImage)); Dispatcher.Invoke(new Action(() => m_infraredImage = e.InfraredImage)); Dispatcher.Invoke(new Action(() => Scan_ColorImage.Source = m_colorImage)); Dispatcher.Invoke(new Action(() => Scan_DepthImage.Source = m_depthImage)); Dispatcher.Invoke(new Action(() => Scan_InfraredImage.Source = m_infraredImage)); } }
private void M_kinectHelper_ImagesArrived(object sender, KinectFrameArgs e) { m_pointCloudBuffer = e.pointCloudV3; m_scanReady = true; }