Label Connected Components : keep unconnected points

To post any request/idea for new functionalities
Post Reply
ThomasRisto
Posts: 13
Joined: Tue Mar 11, 2014 9:47 am

Label Connected Components : keep unconnected points

Post by ThomasRisto »

Hello !

I've been using the Label Connected Components segmentation and I realised that once the segmentation is done, the points that were not clustered just disappeared.

I figured out a trick (merging clusters + distance with the original cloud + threshold) to get them back, but it should not be very difficult to have the algorithm save the remaining points in a last cluster...

That would be very useful if I want, for example, to perform another segmentation with other parameters on these points...

Thanks again for listening to the community !
Thomas
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Label Connected Components : keep unconnected points

Post by daniel »

If you don't want to lose any points you can simply set the 'Min points per component' to 0 (instead of 10 by default).

Then the components are sorted by size, so you can easily get the smallest (at the end) and merge them.
Daniel, CloudCompare admin
ThomasRisto
Posts: 13
Joined: Tue Mar 11, 2014 9:47 am

Re: Label Connected Components : keep unconnected points

Post by ThomasRisto »

Thanks for the hint, I'll do that
Post Reply