Removing points from a point cloud relative from another cloud. #3976
Replies: 3 comments 1 reply
-
What you do is wrong. You did not select non-ground points that is < 2m from the ground points, you just selected non-ground points <2m. As a sequence, you will miss a point that has ground at, e.g. 3m and non-ground at 4m which is still less than 2m relative distance. You have to find corresponding points between ground and non-ground, by xy values only and compute distances between them. Just select points that has distance < threshold When you have corresponding point set, substract them and select by numpy.where |
Beta Was this translation helpful? Give feedback.
-
@hduonggithub thanks for your reply. You are right, my approach was wrong, so I tried using the dists = non_ground_cloud.compute_point_cloud_distance(ground_cloud)
dists = np.asarray(dists)
ind = np.where(dists < 2)[0]
elev = non_ground_cloud.select_by_index(ind) But I am not sure if this still is the right approach as when I implement this, even though the results are a lot better than the previous approach but still seems a bit off (There is a lot of regions with no points at all where there should theoretically be points) . Would be great if you could point me towards how to find corresponding points between the two clouds? Sorry but I am a bit new to working with point cloud data and Open3d. Any help would be great! |
Beta Was this translation helpful? Give feedback.
-
In order to provide some help, we would need to have more information about the point clouds (perhaps some examples?), and also access to the results. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am working with a point cloud data and I have access to two point clouds - one with all the ground plane points, and the other with all the elevated points. I am trying to find a way to filter the points in the elevated point cloud of less than 2m relative to the ground. I tried numpy filtering using
np.where
but it doesn't give the right result if I filter using a common z-axis threshold as the ground is not entirely a flat plane (max value in the z axis for the ground is 6m). Would be great if I could get some help.This is how I was trying to filter it currently.
Beta Was this translation helpful? Give feedback.
All reactions