Label Connected Components - data export

Feel free to ask any question here
Post Reply
karo
Posts: 1
Joined: Tue Jun 09, 2015 7:39 am

Label Connected Components - data export

Post by karo »

I used Label Connected Components to segment my data. When I tried to export the data I saw that every segment is exported separately as *.txt file. Is it possible to export all segments in one file and save the information about the number of segment e.g. as an additional attribute?
And additionally is it possible to use some other segmentation method in cloud compare?

Thanks in advance!
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Label Connected Components - data export

Post by daniel »

Hi,

ASCII files can only contain one cloud per file. So if you want to export multiple clouds in a single file, you'll need to use more advanced formats (e.G. E57).

To do what you want (i.e. keep one cloud with a value associated to each point giving the index of the component) it would be easy to 'hack' CloudCompare (i.e. change a few lines of code) but you would need to compile it on your side.

And about other segmentation process, you can mainly try to generate a scalar field (one value per point - e.g. curvature, distance, visibility, etc.) and segment the cloud based on this value.
Daniel, CloudCompare admin
Post Reply