简体   繁体   中英

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.

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. Like a drawing on a 3D object.

I will recommend to check the examples in the C api of tango. 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

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).

I hope this will help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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