投影和查看矩阵以匹配Kinect RGB相机透视图 [英] Projection and View matrices to match the Kinect RGB camera perspective

查看:252
本文介绍了投影和查看矩阵以匹配Kinect RGB相机透视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了与Kinect RGB相机匹配,有人知道为XNA渲染设置投影和视图矩阵的正确值是什么吗?

Does anybody know what are the correct values to setup the projection and view matrix for a XNA rendering in order to match with the Kinect RGB camera?

例如,如果骷髅头关节坐标为(X,Y,Z),则如果我在3D空间中的这些坐标处绘制一个球体,则渲染应与RGB图像中的头部重叠.

For example, if the skeleton head joint coordinates are (X,Y,Z) then if I draw a sphere at these coordinates in my 3D space, the rendering should overlap the head in the RGB image.

推荐答案

最后,我采用了试错法并确定了参数. 您可以在此处找到更多详细信息: http://www.mindtreatstudios.com/our-projects/kinect-3d-view-projection-matrix-rgb-camera/

In the end I took a trial and error approach and determined the parameters. You can find more details here: http://www.mindtreatstudios.com/our-projects/kinect-3d-view-projection-matrix-rgb-camera/

我确信这不是重构3D空间的最科学方法,但是鉴于我有可用的时间范围和项目的需求,它们运行良好,并且对结果感到满意.

I'm sure this is not the most scientific way of reconstructing the 3D space, but given the time-frame I had available and the needs of my project, they work well and I'm happy with the results.

这篇关于投影和查看矩阵以匹配Kinect RGB相机透视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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