关于TransformSmoothParameters.Smoothing的小问题 [英] Small problem about the TransformSmoothParameters.Smoothing

查看:114
本文介绍了关于TransformSmoothParameters.Smoothing的小问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好。

当我将"TransformSmoothParameters.Smoothing"设置为1时,我得到了

When I set "TransformSmoothParameters.Smoothing" to 1, I get

发生了"System.ArgumentOutOfRangeException" Microsoft.Kinect.dll"错误。

"System.ArgumentOutOfRangeException' occurred in Microsoft.Kinect.dll" Error.

根据MSDN我们可以将值设置为1.

According to MSDN We can set the value to 1.

http://msdn.microsoft.com/en-us/library/microsoft.kinect.transformsmoothparameters.smoothing.aspx

我犯了错误吗?我应该将该值限制为 "x< 1"在我的软件中?

Am I making a mistake? Should I limit the value to be "x<1" in my software?

非常感谢。

推荐答案

嗨BehnamGF,&
不是你的错误。

Hi BehnamGF, 
is not your mistake.

使用SDK v.1.7  for Smoothing参数使用的值范围为[0.0 f,1.0f [

所以利用0.999f代替1.0f 

  &NBSP; &NBSP; &NBSP; &NBSP;  

With the SDK v.1.7  for the Smoothing parameter utilize a value in the range of [0.0f, 1.0f[
So utilize 0.999f instead 1.0f 
           

var MinValuesAcceptedSmoothParameters = new TransformSmoothParameters
            {
                Smoothing = 0.0f,
                Correction = 0.0f,
                Prediction = 0.0f,
                JitterRadius = 0.0f,
                MaxDeviationRadius = 0.0f
            };


var MaxValuesAcceptedSmoothParameters = new TransformSmoothParameters
            {
                Smoothing = 0.999f,
                Correction = 1.0f,
                Prediction = 1.0f,
                JitterRadius = 1.0f,
                MaxDeviationRadius = 1.0f
            };



这篇关于关于TransformSmoothParameters.Smoothing的小问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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