Obtain point clouds from local areas of the depth image
Below I've attached a python code to get a point cloud using a D435i camera. But I have a need. Can you help me with it? How to convert the depth image corresponding to any rectangular area in an RGB image into a point cloud? (I have aligned the depth image beforehand)
pc = rs.pointcloud()
pc.map_to(color_frame)
points = pc.calculate(depth_frame)
vtx = np.asanyarray(points.get_vertices())
-
Hi, the Python script at the link below may be a helpful reference.
Please sign in to leave a comment.
Comments
1 comment