saving rgb color data in pcd ascii

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

saving rgb color data in pcd ascii

Adam Leeper
Hi all-

Ok, another question.

I know pcl::PointClouds carry color data packed as a float. What happens when this is saved in a binary .pcd file, and then converted to ascii?
 Any chance in hell that the color data is still valid if I later read that ascii number in as a float? :)  I ask because there are situations where I might want to save a point cloud for later use in another software framework, one that may not support pcl, and I just read and parse the ascii data manually.

Is there currently any good way to save the r, g, b, color info as separate values? Otherwise I can hack on the pointcloud_to_pcd node if needed.

Thanks,
Adam


Adam Leeper
Stanford University
[hidden email]
719.358.3804

_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: saving rgb color data in pcd ascii

Radu B. Rusu
Administrator
Adam,

Did you test the conversion? I remember Ethan found a bug a few weeks ago, but I'm not sure if he fixed it or not yet.

Cheers,
Radu.
--
http://pointclouds.org

On 01/31/2011 04:02 PM, Adam Leeper wrote:

> Hi all-
>
> Ok, another question.
>
> I know pcl::PointClouds carry color data packed as a float. What happens when this is saved in a binary .pcd file, and
> then converted to ascii?
>   Any chance in hell that the color data is still valid if I later read that ascii number in as a float? :)  I ask
> because there are situations where I might want to save a point cloud for later use in another software framework, one
> that may not support pcl, and I just read and parse the ascii data manually.
>
> Is there currently any good way to save the r, g, b, color info as separate values? Otherwise I can hack on the
> pointcloud_to_pcd node if needed.
>
> Thanks,
> Adam
>
>
> Adam Leeper
> Stanford University
> [hidden email] <mailto:[hidden email]>
> 719.358.3804
>
>
>
> _______________________________________________
> [hidden email] / http://pointclouds.org
> https://code.ros.org/mailman/listinfo/pcl-users
_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users