Conversion from PointCloud to Mat
问题 Let's say I initialize a point-cloud. I want to store its RGB channels in opencv's Mat data-type. How can I do that? pcl::PointCloud<pcl::PointXYZRGBA>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZRGBA>); //Create a new cloud pcl::io::loadPCDFile<pcl::PointXYZRGBA> ("cloud.pcd", *cloud); 回答1: I know how to convert from Mat(3D Image) to XYZRGB. I think you can figure out the other way. Here Q is disparity to depth Matrix. pcl::PointCloud<pcl::PointXYZRGB>::Ptr point_cloud_ptr (new pcl: