Closed Pepe-oss closed 4 months ago
Hello,
There are two functions available in CloudComPy that deal with connected components:
LabelConnectedComponents
and ExtractConnectedComponents
.
The former creates a scalar field in each cloud examined, assigning an integer value to each node. Nodes sharing the same value are connected and form a component. The function returns the number of components.
The second function divides the examined clouds into smaller clouds corresponding to the connected components. An example can be found in the documentation here. With the smaller clouds separated, it's easier to calculate the properties of each component (bounding box, center of gravity...).
Let me know if you need any further explanation. I will improve the documentation on this point.
Regards, Paul
Hello, There are two functions available in CloudComPy that deal with connected components:
LabelConnectedComponents
andExtractConnectedComponents
.The former creates a scalar field in each cloud examined, assigning an integer value to each node. Nodes sharing the same value are connected and form a component. The function returns the number of components.
The second function divides the examined clouds into smaller clouds corresponding to the connected components. An example can be found in the documentation here. With the smaller clouds separated, it's easier to calculate the properties of each component (bounding box, center of gravity...).
Let me know if you need any further explanation. I will improve the documentation on this point.
Regards, Paul
Thank you for your help, I have understood the difference, thanks!
Hi, I have been experimenting with the LabelConnectedComponents function in the cloudComPy package, and I successfully ran the function, obtaining an integer value as the return result. However, I couldn't find any documentation on how to view the classification results. Can anyone help me? Thank you very much. My code as follow:
My goal is to try to achieve the differentiation I realized in cloudcompare as follows: