Kinect 2等效于MapSkeletonPointToDepthPoint是什么?
在1.8及以下的SDK中,它用于将骨架点映射到颜色或深度图像,如下所示:
DepthImagePoint newJointPos = coordinateMapper.MapSkeletonPointToDepthPoint(skeletonPt, depthFormat);
但新的Kinect 2 CoordinateMapper类缺少该方法。
答案 0 :(得分:1)
MapCameraPointToDepthSpace()是与Kinect1的MapSkeletonPointToDepthPoint()相当的Kinect2。
给定skeletonPt
类型CameraSpacePoint
:
DepthSpacePoint depthPt = _mapper.MapCameraPointToDepthSpace(skeletonPt);
ColorSpacePoint colorPt = _mapper.MapCameraPointToColorSpace(skeletonPt);