Kinect获取有关C ++中特定关节的颜色数据 [英] Kinect Getting Color Data About A Specific Joint in C++

查看:98
本文介绍了Kinect获取有关C ++中特定关节的颜色数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试获取有关关节(即髋部中心)的颜色数据.但是,我不知道如何将关节的光谱位置映射到色框.我确实相信对于C#也有类似的答案,但是当涉及到C ++时,似乎几乎没有任何答案.

I'm trying to get the color data about a joint (i.e. hip center). However, I do not know how to map the spectral position of the joint to the color frame. I do believe there are similar answers for C#, but it seems like there is almost nothing when it comes to C++.

我该怎么办?

推荐答案

在c ++中,您必须分两步进行操作,首先使用以下方法获取深度数据:

In c++ you have to do it in 2 steps, first get depth data using:

NuiTransformSkeletonToDepthImage

这将为您提供深度坐标和深度值.然后,您可以使用它来调用:

This gets you depth coordinates and depth values. Then you can use this to call:

NuiImageGetColorPixelCoordinatesFromDepthPixelAtResolution

获取色彩空间坐标.

这篇关于Kinect获取有关C ++中特定关节的颜色数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆