How can I change RGB values of pcl::PointXYZRGBA?

user1403483 picture user1403483 · Apr 14, 2013 · Viewed 12.8k times · Source

I have a point of the type pcl::PointXYZRGBA. How can I assign/change its rgb values?

For changing xyz coordinates, I can simply do point.x = some_value.

Answer

Deepfreeze picture Deepfreeze · Nov 19, 2014

Or just use

point.r = 255;
point.b = 0;
point.g = 0;
point.a = 255;