Finding percentage and removing overlaping points in multiple point clouds
See original GitHub issueHi @marcomusy,
Is it possible to use vedo to find the percentage of overlapping points and remove them from multiple loaded point clouds?
For example in the image below: I have loaded 3 different point clouds (i.e. red, orange, yellow) which they overlap to each other. Then I would like to find how much do they overlap and keep only the points where there is not overlapping area.
import numpy as np
import vedo as vd
import natsort
from wcmatch import glob
folder = ./7-scenes-redkitchen/'
pcd_files = natsort.natsorted(glob.glob(folder + '**/*.ply', flags=glob.BRACE | glob.GLOBSTAR))
tranf_files = natsort.natsorted(glob.glob(folder + '**/*.txt', flags=glob.BRACE | glob.GLOBSTAR))
pcds = []
for i, input_path in enumerate(pcd_files):
t = np.loadtxt(tranf_files[i], skiprows=1)
pcd = vd.Points(input_path).color(i).applyTransform(t, reset=True)
pcds.append(pcd)
vd.show(pcds, axes=1).close()
Issue Analytics
- State:
- Created 2 years ago
- Comments:15 (7 by maintainers)
Top Results From Across the Web
Expected Overlap Estimation over Unstructured Point Cloud ...
We present an iterative overlap estimation technique to augment existing point cloud registration algorithms that can achieve high performance in difficult ...
Read more >Two overlapping point clouds before registration.
This analysis has been performed for each point cloud. Figure 3 and 4 put in evidence, for two overlapping point clouds, the possible...
Read more >A method for data density reduction in overlapped airborne ...
The traditional method for mitigating data density on overlapped airborne LiDAR strips is the accuracy-based approach. For example, the “Cut by ...
Read more >Removing points from overlapping scans by specific scans
Removing points from overlapping scans by specific scans ... Hi all, I'm fairly new to Cloud Compare and point clouds in general so...
Read more >Fast and Robust Registration of Partially Overlapping Point ...
The overlap ratio measures the overlap between point clouds as the percentage of points in the source point cloud that, when aligned, are...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
yes, you may use
mypcl.averageSize()
ormypcl.diagonalSize()
Thanks Marco, I confirm that now it works as supposed.
Regarding the actual issue subject, below is a method to extract the overlapping percentage of two point clouds (considering that they are aligned) based on their points distance:
The
overlapping_points
contain the indexes of the points, which can be cleared out bypcd.delete()
if someone wants to delete these points.