MapSkeletonPointToDepthPoint准确度 [英] MapSkeletonPointToDepthPoint accuracy

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

问题描述

您好,

我正在使用microsoft xna示例:xnaBasics在color\depth流上显示骨架。

I am using microsoft xna example : xnaBasics which displays skeleton on color\depth stream.

我想要基于两件事在颜色流上绘制一些对象:

I want to draw some object on the color stream base on 2 things:

1。骨架右臂关节的位置(这不是当前位置,但是我保存了一些位置)

1. The position of skeleton right arm joint (this is not the current position but some position I saved)

2。当前深度值。

我从骨架到深度执行以下映射:

I do the following mapping from skeleton to depth :

  var depthPt = Chooser.Sensor.CoordinateMapper.MapSkeletonPointToDepthPoint(point ,Chooser.Sensor.DepthStream.Format);

 var depthPt = Chooser.Sensor.CoordinateMapper.MapSkeletonPointToDepthPoint(point, Chooser.Sensor.DepthStream.Format);

 我得到3d深度点。

 and I get 3d depth point.

现在我想在深度图像中找到这一点,我希望根据  depthPt.x和  depthPt.y得到相同的深度值,但我得到不同的值:

Now I want to find this point in depth image and I expect to get the same depth value according to depthPt.x and depthPt.y, but I get diffrent values:

(((XnaBasics)(base.Game))。depthStream.depthData [depthPt.x  + depthPt.y * 640])>> 3

(((XnaBasics)(base.Game)).depthStream.depthData[depthPt.x +depthPt.y*640])>>3

你能告诉我是否我想得到相同的值?

Can you please tell me if I suppose to get the same values?

示例:

depthPt:x:273 Y:158深度: 1214  

depthPt: x:273 Y:158 Depth: 1214 

(((XnaBasics)(base.Game))。depthStream.depthData [273+(158)* 640])>> 3 =
1191

(((XnaBasics)(base.Game)).depthStream.depthData[273+(158)*640])>>3 = 1191

非常感谢

Yasmin

推荐答案

Whe n将骨架点映射到深度空间,即投影映射到2D平面。根据噪音水平会有一些波动,所以最好将其平均。

When you map skeletonpoints to the depth space, that is a projection mapping onto a 2D plane. Depending on the level of noise there will be some fluctuation so it is best to average it out.


这篇关于MapSkeletonPointToDepthPoint准确度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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