private void ProcessKinectFrame(KinectFrameWorkItem workItem) { ProcessSkeletonFrame(workItem); ProcessColorFrame(workItem); ProcessDepthFrame(workItem); FusionManager.ProcessFusionFrame(workItem); //var skeletonList = new List<Skeleton>(); //if (_activeSkeleton != null) //{ // skeletonList.Add(_activeSkeleton); //} //FaceTrackingVM.TrackFrame(DefaultColorImageFormat, // _colorImageData, // DefaultDepthImageFormat, // _depthImagePixels, // skeletonList, // fusionWorkItem.FrameNumber); rawFrameCount++; _kinectFrameWorkItemPool.Push(workItem); _syncContext.Post((SendOrPostCallback)UpdateKinectFrameUI, null); }