如何从Kinect 2中的深度和RGB贴图中获取x,y,z坐标? [英] How can I get x,y,z coordinate from depth and RGB map in Kinect 2?

查看:614
本文介绍了如何从Kinect 2中的深度和RGB贴图中获取x,y,z坐标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是从Kinect 2中获取深度和RGB地图的x,y,z坐标的函数调用?有没有示例代码? 谢谢!!

What is function call to obtain  x,y,z coordinate from depth and RGB map in Kinect 2? Is there any sample code?  Thanks!!

推荐答案

查看坐标映射基础示例。如果您要将深度帧的像素坐标转换为"CameraSpace",使用适当的映射函数MapDepthPointtoCameraSpace例如:

Have a look at the Coordinate Mapping basics sample. If you are looking to convert pixel coordinates of the depth frame to "CameraSpace" use the appropriate mapping function MapDepthPointtoCameraSpace for example:

http://msdn.microsoft.com/en-us/library/microsoft.kinect.coordinatemapper.mapdepthpointtocameraspace.aspx

如果您只想要深度值,深度帧数组数据中的每个点都是以毫米表示的值。

If you just want the depth value, each point in the depth frame array data is a value represented as millimeters.


这篇关于如何从Kinect 2中的深度和RGB贴图中获取x,y,z坐标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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