Kinect SDK v1 - TransformSmooth [英] Kinect SDK v1 - TransformSmooth

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

问题描述

如何在新SDK中设置TransformSmoothParameters?

How can I set TransformSmoothParameters in new SDK?

在文档中提供SmoothParameters 和SkeletonStream类型公开的TransformSmooth有get和set,  但实际上是只读的。

In the documentation the proprieties SmoothParameters  and TransformSmooth,exposed by the SkeletonStream type have get and set,   but in really are read only.

推荐答案

我找到了解决方案。

I find a solution.

有一个文档错误!!

这是设置TransformSmoothParameters的代码

This is the code to set TransformSmoothParameters


                    TransformSmoothParameters parameters = new TransformSmoothParameters();
                    parameters.Smoothing = 0.2f;
                    parameters.Correction = 0.8f;
                    parameters.Prediction = 0.0f;
                    parameters.JitterRadius = 0.5f;
                    parameters.MaxDeviationRadius = 0.5f;

                    sensor.SkeletonStream.Enable(parameters);


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

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