Convert kinect RGB and depth values to XYZ coordinates

只愿长相守 提交于 2019-12-21 05:23:10

问题


I'm looking for an easy way to Convert kinect RGB and depth values to XYZ coordinates using MATLAB. My goal is a function with an input of: RGB and depth values of each point taking by Kinect camera, and output of: x,y and z values of each point.

[RGB, depth] = RGB_D2XYZ(XYZ)

Thanks, Ben


回答1:


You can have a look to this great article. They have a function call DepthToCloud.m. You just need to be sure to pass Image center and top-left corner.

They are using Kinect too, so you don't really need to change a lot of parameter.

The article can be found here

EDIT

You can use mexopencv or OpenCV Matlab wrapper, to capture image and to do calibration. After OpenCV have a great function call reporjectImageTo3D. But this function need matrix Q. It's the projection matrix. Have a look to OpenCV documentation if you want to do by this way. Else depthToCloud is really good too.



来源:https://stackoverflow.com/questions/20497445/convert-kinect-rgb-and-depth-values-to-xyz-coordinates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!