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
.
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
.
You can use
pcl::PointXYZRGB
instead ofpcl::PointXYZRGBA
. I think they both do the same. And then to color a point red (255,0,0), you can do:And the xyz-coordinates can then be assigned respectively:
EDIT: Or if you have to stick with
pcl::PointXYZRGBA
, you can doOr just use