从色彩空间移动到相机空间 [英] Moving from Color Space to Camera Space

查看:72
本文介绍了从色彩空间移动到相机空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everyone;

Hello Everyone;

我试图以毫米为单位获取相机空间中一个像素(例如位置200,330)的位置。

I am trying to get the location of one pixel (for example location 200,330) in the camera space in mm.

我所拥有的是图像中对象的像素坐标。

What I do have is the pixel coordinates of an object in the image.

如果我使用coordinateMapper.MapColorFrameToCameraSpace,我只能传入整个深度帧而不仅仅是来自RGB图像的像素坐标。

If I use the coordinateMapper.MapColorFrameToCameraSpace, I can only pass in the whole depth frame instead of just the pixel coordinates from the RGB image.

任何人都知道怎么做?

谢谢;

推荐答案

这是唯一可以对颜色数据做出假设的方法这是2D映射到3D空间。您还可以使用颜色到深度来获得颜色到深度投影的展平表示。您必须迭代坐标映射器返回的映射查找
表,以查看是否可以映射点。  由于红外阴影,分辨率和宽高比,有点可能会落入未知或未映射的区域。

That is the only way given there can be no assumptions made on color data that is 2D mapped into a 3D space. You can also use color to depth to get you a flatten representation of the color to depth projection. You have to iterate over the mapped lookup table returned by the coordinate mapper to see if the point can be mapped. There are points can fall into unknown or unmapped areas because of IR shadow, resolution and aspect ratio.


这篇关于从色彩空间移动到相机空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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