OpenNni:颜色坐标到深度坐标
我想知道如何转换从 全分辨率彩色图像到深度流中的坐标。
例如,我从全分辨率颜色中得到了(763,234),我想知道什么 (x,y,z) 是来自深度图像吗? (顺便说一句,我在 java 中执行此操作,但 c++ 中的答案可能很容易 可翻译)
提前谢谢
I was wondering how can I convert a coordinate that i acquired from a
full res color image to coordinates in the depth stream.
E.g, i got (763,234) from the full res color and i want to know what
is the (x,y,z) from the depth image ?
(btw i'm doing this in java, but an answer in c++ is probably easily
translatable)
Thx in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您的输入设备允许,您只需使用“GetAlternativeViewPointCap”即可,如以下 C++ 代码所示。在这种情况下,深度图会自动转换,以便与彩色图像对齐。因此,给定彩色图像上像素的坐标(x,y),查询同一位置的深度图就足够了。
如果这种方法不可行,您应该估计两个相机之间的转换。像《计算机视觉中的多视图几何》这样的书描述了所有必要的背景和算法。
If your input device allows it, you can simply use "GetAlternativeViewPointCap", as shown in the following C++ code. In this case, the depth map is automatically transformed so to become aligned with the color image. Therefore, given a coordinate (x,y) of a pixel on the color image, it becomes sufficient to query the depth map at the same position.
If this approach is not viable, you should estimate the transformation between the two cameras. A book such as "Multiple View Geometry in Computer Vision" describes all the necessary background and algorithms.