如何更改pcl :: PointXYZRGBA的RGB值? [英] How can I change RGB values of pcl::PointXYZRGBA?
本文介绍了如何更改pcl :: PointXYZRGBA的RGB值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个点类型 pcl :: PointXYZRGBA
。如何分配/更改其rgb值?
I have a point of the type pcl::PointXYZRGBA
. How can I assign/change its rgb values?
为了更改xyz坐标,我可以简单地做 point.x = some_value
For changing xyz coordinates, I can simply do point.x = some_value
.
推荐答案
或只使用
point.r = 255;
point.b = 0;
point.g = 0;
point.a = 255;
这篇关于如何更改pcl :: PointXYZRGBA的RGB值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文