如何将kinect的深度图像与彩色图像对齐
Kinect 上的颜色和深度传感器生成的图像略有不对齐。我怎样才能改变它们以使它们对齐?
The image produced by the color and depth sensor on the Kinect are slightly out of alignment. How can I transform them to make them line up?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
关键是调用“Runtime.NuiCamera.GetColorPixelCoordinatesFromDepthPixel”,
这是 Runtime 类的扩展方法。它返回一个 WriteableBitmap 对象。这个 WriteableBitmap 会随着新帧的进入而自动更新。所以它的用法非常简单:
这是代码本身:
The key to this is the call to 'Runtime.NuiCamera.GetColorPixelCoordinatesFromDepthPixel'
Here is an extension method for the Runtime class. It returns a WriteableBitmap object. This WriteableBitmap is automatically updated as new frames come in. So the usage of it is really simple:
and here's the code itself:
实现此目的的一种方法是假设颜色和深度图像具有相似的变化,并对两个图像(或其较小版本)进行交叉关联。
One way to do this is to assume that the color and depth images have similar variations in them, and to cross-correlate the two images (or smaller versions of them).