如何获得距离测量C ++ [英] How to get distance measurement C++

查看:86
本文介绍了如何获得距离测量C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我使用Kinect获取有关对象的信息..

所以我需要通过距离测量来分析对象。 。

我试图在www中找到答案,但直到现在一无所获。如何从深度流中获取深度数据?

如何将其转换为实际数据,以及我可以使用的数据。

我使用C ++(MFC)。 Depth Stream已经可以使用了。我只需要深度数据。

i use Kinect for getting information about objects..
So i need to get distance measurements to analyse the object..
I tried to find an answer in the www but till now nothing. How to get the depth data from a depth stream?
How to convert it to real data, to data i can use.
I use C++ (MFC) . Depth Stream is already avaible. I just need the depth data.



谢谢:D


Thanks :D

推荐答案

深度图像中的每个像素表示投影到平面上的距离。  如果你想获得"真实世界"该点的坐标,你可以使用坐标映射器和地图深度到骨架。

Each pixel in the depth image represents the distance that is projected onto a plane.  If you want to get the "real world" coordinate of that point, you can use the coordinate mapper and map depth to skeleton.

你可以在SDK工具包中找到几个样本来获取深度数据和坐标映射器样本如何使用那些api's。

You can find several samples in the SDK Toolkit to get depth data and the coordinate mapper sample on how to use those api's.


这篇关于如何获得距离测量C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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