Home > other >  Photo want to batch point cloud and custom different colors
Photo want to batch point cloud and custom different colors

Time:03-26


[problem]
I deal with the same point cloud later became a different part of the point cloud, want to batch definition, according to the different color and
Above is my own test demo, according to the present to the photo seems to want to custom show point cloud can only use PCLvisualizer color, the color parameters in addPointCloud
Photo: the visualization: : PointCloudColorHandlerCustom As if can only be defined when the assignment, namely: photo: : the visualization: : PointCloudColorHandlerCustom PCH (PC [0], 255, 0, 0).
PC [0] is the point of the first batch I read them, and then I pressed PCH into vector, another point cloud want to use green,
PCH - & gt; PointCloudColorHandlerCustom (PC [1], 0, 0, 255);
Then an error C2819 "photo: : the visualization: : PointCloudColorHandlerCustom" Type members without overloading operator - & gt; "" ,
[demand]
Want to can you tell me how to solve this error, bosses don't want to change a photo class definition of increasing load? Or any other method can display the point cloud and customize their bulk color? thank you
  • Related