从旧SDK切换 [英] Changing over from the old SDK

查看:75
本文介绍了从旧SDK切换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我有一个正在使用xbox 360 Kinect在原始v1 SDK上运行的c ++程序。我现在已经升级到SDK 2.0和Kinect for Windows v2。现在,问题是旧的SDK使用NuiApi.h和相关的头文件
,但不会转移到SDK。



我一直在广泛查看此处的示例和文档


https://msdn.microsoft.com/en-us/library/hh855364.aspx


但是我仍然很难确定旧版本的等价物。


在我使用的旧版本中:


NuiInitialize


NUI_INITIALIZE_FLAG_USES_SKELETON


NUI_INITIALIZE_FLAG使用颜色


NUI_INITIALIZE_FLAG_USES_DEPTH_AND_PLAYER_INDEX


NUI_IMAGE_TYPE_COLOUR


NUI_IMAGE_RESOLUTION


NUI_SKELETON_FRAME


NUI_SKELETON_COUNT


NUI_SKELETON_TRACKED


NuiTransformSmooth


NUI_SKELETON_POSITION_HAND_RIGHT


(适用于左,头,左脚,右脚)


NuiTransformSkeletontoDepthImage



列表去了on



#include< NuiApi.h>,#include" NuiImageCamera.h",#include" NuiSkeleton相关联的

.h",#include" NuiSensor.h"



我应该使用什么?我没有通过任何文档或示例清楚地了解如何在较新的系统中使用我的旧代码或应该更改什么以及什么。



我非常感谢你的帮助,提前谢谢。






解决方案

您可以省略很多设置开销。查看新的SDK编程模式,因为几乎不需要"初始化"。您只需要为所需的特定源类型设置一个阅读器,然后从阅读器中提取数据。



Hi everyone, I had a working c++ program running on the original v1 SDK with an xbox 360 Kinect. I have now since upgraded to SDK 2.0 and the Kinect for Windows v2. Now, the problem is that the old SDK used the NuiApi.h and relevant header files but that does not transfer over to the SDK.

I have been extensively looking at the samples and documentation found here

https://msdn.microsoft.com/en-us/library/hh855364.aspx

But I am still having a very hard time trying to determine the equivalent for the old version.

In the older version I used:

NuiInitialize

NUI_INITIALIZE_FLAG_USES_SKELETON

NUI_INITIALIZE_FLAG USES COLOR

NUI_INITIALIZE_FLAG_USES_DEPTH_AND_PLAYER_INDEX

NUI_IMAGE_TYPE_COLOUR

NUI_IMAGE_RESOLUTION

NUI_SKELETON_FRAME

NUI_SKELETON_COUNT

NUI_SKELETON_TRACKED

NuiTransformSmooth

NUI_SKELETON_POSITION_HAND_RIGHT

(and for left, head, left foot, right foot)

NuiTransformSkeletontoDepthImage

the list goes on

the ones associated with

#include <NuiApi.h>, #include "NuiImageCamera.h", #include "NuiSkeleton.h", #include "NuiSensor.h"

What should I be using instead? It is not made very clear to me by any documentation or samples how to use my older code with the newer system or what should be changed and to what.

I would very much appreciate some help, thanks in advance.


解决方案

There is a lot let setup overhead you will just omit. Review the new SDK programming pattern as there is little need to "initialize". You just need to setup a reader for the particular source types you need and pull the data from the reader.


这篇关于从旧SDK切换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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