简体   繁体   English

如何从Project Tango点云数据中提取特定颜色?

[英]How to extract specific color from Project Tango point cloud data?

I wanted to use Tango's RGB camera along with its Depth data to create a specific point cloud involving only one color, but I'm not sure how to approach this. 我想使用Tango的RGB相机及其深度数据来创建仅涉及一种颜色的特定点云,但是我不确定该如何处理。

What i want to do is ultimately re-construct an object in blender based on it's XYZ value and the way I'm trying to extract this object from its background is based on color because it doesn't have any depth on it's own. 我要做的是最终根据其XYZ值在Blender中重建对象,而我尝​​试从其背景中提取该对象的方式基于颜色,因为它本身没有任何深度。 Like a drawing on a 3D object. 就像3D对象上的绘图一样。

I will recommend to check the examples in the C api of tango. 我建议检查探戈的C API中的示例。 It should be possible to do it all in java but the example in c called cpp_rgb_depth_sync_example should give you several ideas Check the code in https://github.com/googlesamples/tango-examples-c 应该可以在Java中完成所有操作,但是c语言中的示例cpp_rgb_depth_sync_example应该给您一些想法检查https://github.com/googlesamples/tango-examples-c中的代码

This example puts the information of the pointcloud in the color image... you just want to do the inverse! 本示例将点云的信息放入彩色图像中……您只想进行逆运算!

For each point cloud: - Gather the previous color image - Using the camera intrinsics (see the example above), you can link each point of the point cloud with a voxel in the image. 对于每个点云:-收集先前的彩色图像-使用相机的内在函数(请参见上面的示例),可以将点云的每个点与图像中的体素链接。 - Once you have the color for each point you can remove the points you are not interested in. -有了每个点的颜色后,就可以删除不需要的点。

One thing to remind is that the color image is in a yuv format (you might want to convert it in RBG). 需要提醒的一件事是,彩色图像是yuv格式的(您可能希望将其转换为RBG)。

I hope this will help. 我希望这将有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM