PointLess

Connected components

Splits the points into separate parts by voxel connectivity; writes a component number to each point and can assign small and large components to separate classes.

In the app: Processing › Segmentation › Connected components…

What does it do?

Points are placed in voxels of the given size; occupied voxels that touch in any of the 26 directions belong to the same component. In the Component scalar field, 0 is the largest component, 1 the second …; components below the minimum points count become −1.

The summary gives the point and component counts, the components that meet the condition, the number of points in small components and the sizes of the ten largest components. Optionally, small components (e.g. class 7) and large components are assigned to separate classes; the change is undone with Ctrl+Z and saved with Ctrl+S. Use it to separate single vehicles, detached vegetation clusters, separate buildings and noise floating in the air.

How to use it

  1. 1Open Processing → Segmentation → Connected components…; choose the cloud and scope.
  2. 2Set the classes to split into components.
  3. 3Enter the voxel size and the minimum points / component.
  4. 4Optionally choose target classes for small and/or large components, then click Separate.

Parameters

SettingWhat it doesDefault
CloudA single cloud is selected.First cloud
Whole cloud / Selected areaScope; Selected area is disabled when there is no selection.Selected area if there is a selection
Classes to split into components:Class filter.Custom: 1, 3, 4, 5, 6
Voxel size (connection spacing):Points in neighboring voxels of this size are connected; 0.01–100.00 m.1.00 m
Minimum points / component:Components below this count are small (−1); 1–100 000 000.50
Components below the minimum point count (small) → classTarget class 0–255.Off, 7
Other (large) components → classTarget class 0–255.Off, 1
When finished, show the 'Component' field as colorWith the Rainbow scale.On

Outputs

  • Component scalar field (0 largest, −1 small)
  • Summary: component counts, sizes of the largest components
  • Optional class assignment (Ctrl+Z / Ctrl+S)

Tips

  • Leave ground (2) out; ground connects all objects to each other.
  • Choose a voxel size a few times the point spacing: a small value breaks an object apart, a large value merges adjacent objects.
  • Assigning small clusters floating in the air to class 7 complements SOR.

Related tools