3

我使用的是 OpenNI v1.5.2.23,但我发现的大多数示例都是针对 1.0.0.23,所以我每次都必须更改代码以使用新功能,而不是过时的功能。

例子:

OldCode: using xn;

NewCode: using OpenNI;

---
OldCode: depth.GetDepthMapPtr().ToPointer();

NewCode: depth.DepthMapPtr.ToPointer();

---
OldCode: depth.GetMapOutputMode();

NewCode: depth.MapOutputMode;

---
OldCode: new Context(@"..\..\data\openniconfig.xml");

NewCode: Context.CreateFromXmlFile(@"..\..\data\openniconfig.xml", out scriptNode);

---

OldCode: Bitmap((int)mapMode.nXRes, (int)mapMode.nYRes ...

NewCode: Bitmap((int)mapMode.XRes, (int)mapMode.YRes ...

---

我正在查看旧的,然后我转到较新的示例或文档以找到正确的新方法/类/属性,但这非常耗时。

所以问题是,有没有人列出任何变化的清单?(OpenNI 附带的更新日志对我帮助不大)

4

0 回答 0