Page 1 of 1

About Label Connected Component

Posted: Thu Oct 25, 2018 10:29 am
by fblue
Hi Daniel,
I'm a newbee of CloudCompare and I'am learning to use CC now. Later I will have a project to develop a plugin for our uses, mostly in filtering and registration.
I found the tool "Label Connected Component" which may be intersting for the first step of our filtering.
Is it a part of open source and can I use it? It seems that I can't find it in the codes sources.

Thank u

Re: About Label Connected Component

Posted: Mon Oct 29, 2018 8:25 pm
by daniel
Yes the Label Connected Component algorithm is part of the CC_CORE_LIB library and can be used by anyone (it is under LGPL license). Which means either in a CC plugin or in an external project.

See https://github.com/CloudCompare/CloudCo ... ools.h#L68

And if you want to develop a CC plugin, you can of course use any part of CloudCompare, even if it's a private plugin.

Re: About Label Connected Component

Posted: Tue Oct 30, 2018 10:06 am
by fblue
Super! Thank u so much!

Re: About Label Connected Component

Posted: Fri Nov 12, 2021 12:14 pm
by Cova_Prendes
Hello:

I am working with a TLS point cloud captured in a forest. I would like to remove some noise among the trees so I have used the tool "Connected components" to obtain different groups of points. I woul like to delete the smallest ones (that belong to branches or leaves), but I do not know how to calculate the number of points within each connected component to do the filtering. Could you please help me?

Re: About Label Connected Component

Posted: Fri Nov 12, 2021 12:40 pm
by daniel
Well, you simple have a 'size()' method that returns the number of points?

Re: About Label Connected Component

Posted: Mon Dec 12, 2022 3:38 pm
by pflani
Hi Daniel,
A good description of the connected components approach is here. It refers to your 2006 PhD thesis. Is the transcript available in English for those of us who are not gifted bilinguals?
(I'll be using google translate in the meantime, but suspect it will not capture all the details!)
Thanks,
Paul

Re: About Label Connected Component

Posted: Tue Dec 13, 2022 10:45 pm
by daniel
So you want to ignore the smallest components before even creating the sub-clouds? (I'm confused because there's already a parameter to do that).

While if you do create the sub-clouds, then you really only need to filter by the size... Sorry for not understanding what you mean!