I would like to convert the Pointcloud to a 2D image. Can that be done? In particular, I am trying to migrate the following matlab code?
pc = pcread(path);
img = double(pc.Color(:,:,1))
As I understand, I can see the xyz
coordinates of the pointcloud in opend3d
with the .points
attribute and its associated color values with the .colors
attribute. I however, do not understand how I can convert this information to a 2d Image. I think I need metadata information from the pointcloud such as the width and height of the image. For example, I know that a pcl I loaded contains 81920 points. If I knew the width and height of the point clouds, I think I could convert the point cloud to an image.
Does somebody have an idea how I can do that? I’m grateful for any hints and suggestions!