How to read Organised Pointclouds to maintain correspondance between image resolution and cloud width and height?
I am reading the pcd file saved from Zed Camera into PCL point cloud. But I am not able to restore the relation between image point cloud height and width resolution. I am getting a cloud-> height as 1 always. I know this happens because some point in the 3D space are not valid hence I am missing them. Does anyone know how to restore the correspondence?
How are you saving the pcd files? I ask because a
pcl::PointCloud
with a height of 1 is not an organised cloud. However the ZED camera generates organised clouds so somewhere along the way it's being converted to an in structured cloud. If we can find and fix that then you won't have to try and convert an unstructured cloud to a structured one.