颜色和深度帧的不同宽高比 - >映射问题 [英] Different aspect ratios for color and depth frames -> mapping problems

查看:67
本文介绍了颜色和深度帧的不同宽高比 - >映射问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个基于CoordinateMappingBasics-WPF示例的小型原型(在C#中),当我运行原始程序时,我注意到渲染用户在背景图像上的边缘被截断。我想这是由于深度和颜色框架的不同方面
比率以及后者的像素在代码中映射到前者的方式。我认为应该更新此示例以解决该问题,但与此同时,遇到此问题的某人是否可以告诉我
如何进行正确的映射?

I'm developing a small prototype (in C#) based on the CoordinateMappingBasics-WPF sample and when I run the original program, I notice that the rendered user over the background image is truncated at the edges. I imagine this is due to the different aspect ratios of the depth and color frames and the way pixels from the latter are mapped to the former in the code. I think this sample should be updated to fix that problem, but in the meantime, could someone, who has encountered this issue, please tell me how to do a correct mapping?

谢谢。

推荐答案

没有什么可以解决的。深度框架无法映射到不存在的区域。如果您是1:1的映射,则必须将彩色图像裁剪为512x424。
There is nothing to fix. The depth frame cannot map onto areas that don't exist. If you what a 1:1 mapping, you will have to crop the color image to 512x424.


这篇关于颜色和深度帧的不同宽高比 - >映射问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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