Reputation:
I have a point cloud of a human body and 3d scan of it. I have some coordinates of skeleton joints but I want to check if the coordinates fit the body/point cloud or not.
I have tried to do that with python open3d and pangolin c++ but I couldn't figure out how to do that.
I have X, Y, Z coordinates of a point and I want to see where it is in my point cloud. To explain my question I have an example image that is done with paint.
I need advice about what I can use to do that.
Upvotes: 1
Views: 2984
Reputation: 183
It depends on if you want to check visually or automatically.
The visually check is very easy to do with Open3D (at least, installation is much easier than PCL-Python)
First, you need to install open3d packages. Then read your point clouds by:
import open3d as o3d
pcd = o3d.io.read_point_cloud(file_path)
Then generate two red point cloud in o3d: # I think your x(3,1) means x for two points
import numpy as np
pcd_red = o3d.geometry.PointCloud()
xyz = np.asarray([[3, 2, 8],
[1, 8, 3]])
pcd_red.points = o3d.utility.Vector3dVector(xyz)
# paint them to red
pcd_red.paint_uniform_color([1, 0, 0])
Finally is display:
o3d.visualization.draw_geometries([pcd, pcd_red])
Upvotes: 1