Kinect 2 SDK:MapSkeletonPointToDepthPoint?

时间:2014-09-16 17:31:08

标签: kinect-sdk

Kinect 2等效于MapSkeletonPointToDepthPoint是什么?

在1.8及以下的SDK中,它用于将骨架点映射到颜色或深度图像,如下所示:

DepthImagePoint newJointPos = coordinateMapper.MapSkeletonPointToDepthPoint(skeletonPt, depthFormat);

但新的Kinect 2 CoordinateMapper类缺少该方法。

1 个答案:

答案 0 :(得分:1)

MapCameraPointToDepthSpace()是与Kinect1的MapSkeletonPointToDepthPoint()相当的Kinect2。

给定skeletonPt类型CameraSpacePoint

DepthSpacePoint depthPt = _mapper.MapCameraPointToDepthSpace(skeletonPt);
ColorSpacePoint colorPt = _mapper.MapCameraPointToColorSpace(skeletonPt);