Assuming that you are using PCL (Point Cloud Library), you can change the color of the inserted points by setting their RGB values to red. Here's how you can modify your code to achieve this:

// Define a red color uint8_t r = 255; uint8_t g = 0; uint8_t b = 0;

std::vector<Point_set> pts_pipeishiyan; pts_pipeishiyan.resize(planes.size());

for (int i = 0; i < planes.size(); i++) { for (int j = 0; j < planes[i].size(); j++) { // Set the RGB values of the point to red planes[i][j].r = r; planes[i][j].g = g; planes[i][j].b = b;

    pts_pipeishiyan[i].insert(planes[i][j]);
}

}

In the above code, we define a red color by setting the red component to 255 and the green and blue components to 0. We then iterate through each point in the planes vector and set its RGB values to red before inserting it into the pts_pipeishiyan vector

double indexa = 100000000;	double indexb = 100000000;	double indexa1 = 100000000;	double indexb1 = 100000000;		for int j = 0; j dis_centroid_LidarToPhotosize; j++					for int k = 0; k dis_centroid_L

原文地址: https://www.cveoy.top/t/topic/cuZk 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录