Axial Clustering

Description

This operator groups point clouds along a specified direction (such as the height direction). Two grouping methods are provided:

K-Means: Groups based only on the position values of points in the specified direction, simplifying this 3D problem into 1D processing.

DBSCAN: While considering the specified direction, it also retains the 3D spatial structure information of the point cloud, ensuring the grouping results are more reasonable spatially.

Overview

Performs layered clustering on point clouds along a specified axis and outputs results sorted by axial height.

Scenarios

Suitable for processing objects that are layered, stacked, or arranged along a specific direction.

  • Layered Object Segmentation: Perfectly suitable for segmenting items on different levels of a shelf, workpieces stacked on a pallet, or any scenario distributed by layers. In this case, the "Clustering Axis" is usually set to the vertical direction (e.g., Z-axis).

  • Array Object Separation: When multiple objects are arranged along a straight line, the "Clustering Axis" can be set to the direction of that line to separate each object.

  • Eliminating Specific Regions: By setting the axis and sorting, it is convenient to keep or remove the highest/lowest, leftmost/rightmost objects.

Inputs and Outputs

Inputs

Scene Point Cloud: The input point cloud or list of point clouds to be axially clustered.

Outputs

Clustered Point Cloud: Returns the list of point cloud clusters after clustering along the specified axis.

Parameters

Clustering Method

Description

Select the clustering algorithm:

  • K-Means Clustering: Requires specifying the expected number of clusters in advance, forcing the point cloud to be split into the specified number of clusters.

  • Density Clustering: Does not require presetting the number of clusters; automatically finds clusters based on the density of points along the axis.

Tuning Instructions

  • K-Means Clustering: Suitable for scenarios where the number of target layers or stacks is explicitly known.

  • Density Clustering: Suitable for scenarios where the number of layers or quantity is unknown, but there are distinct gaps between layers.

K-Means Clustering Specific Parameters

Parameter Range

Values/Range:

  • K-Means Clustering

  • Density Clustering

Default: Density Clustering

Number of Clusters

Description

Specifies the exact number of clusters expected.

Parameter Range

[1, 500], Default value: 3

Parameter Range

Values/Range: [1, 500]

Default: 3

Iterations

Description

The maximum number of iterations for the algorithm. Larger iteration counts may produce better results but will increase time consumption.

Parameter Range

[1, 5000], Default value: 10

Parameter Range

Values/Range: [1, 5000]

Default: 10

Batch Size

Description

The number of samples used in a single iteration. Increasing this value may improve speed with large data volumes but will increase memory consumption.

Parameter Range

[1, 5000], Default value: 10

Parameter Range

Values/Range: [1, 5000]

Default: 50

Search Radius

Description

Needs to be set based on the actual axial distance between layers or objects. If set too large, different layers may be merged; if too small, a single layer may be incorrectly split.

Parameter Range

[1, 5000], Default value: 5

Parameter Range

Values/Range: [1, 5000]

Default: 5

Density Condition

Description

Used to distinguish valid point cloud layers from sparse noise. Increasing this value makes the clustering condition stricter and helps filter out noise.

Parameter Range

[1, 5000], Default value: 100

Parameter Range

Values/Range: [1, 5000]

Default: 100

Clustering Axis

Description

Defines a 3D vector [x, y, z] as the directional reference for clustering.

Tuning Instructions

Sets the expected direction for layering.

Parameter Range

Parameter Range

Default: [0, 0, 1]

Minimum Cluster Points

Description

Suitable for filtering out meaningless small noise clusters composed of a few points. Appropriately increase this value to ensure meaningful clustering results are output.

Parameter Range

[1, 4000000], Default value: 100

Parameter Range

Values/Range: [1, 10000000]

Default: 1000

Maximum Cluster Points

Description

Suitable for scenarios where a very large background or support surface needs to be excluded. For example, to ignore a table and only analyze small objects on it, set an upper limit to filter out the largest point cloud cluster representing the table.

Parameter Range

[1, 4000000], Default value: 4000000

Parameter Range

Values/Range: [1, 10000000]

Default: 4000000

Sort Order

Description

Sets the sorting rule for the output list of point cloud clusters.

Tuning Instructions

The operator calculates the position of the center point of each cluster on the "Clustering Axis" and sorts them based on this position.

"Low to High" means sorting from the negative direction to the positive direction along the clustering axis, and vice versa for sorting from the positive direction to the negative direction.

Parameter Range

Values/Range:

  • Low to High

  • High to Low

Default: Low to High

Keep All Results

Description

Whether to output all segmentation results for each input point cloud. If False, only the top N results are retained as specified by the Number of Results to Keep parameter.

Parameter Range

Values/Range:

  • True

  • False

Default: True

Number of Results to Keep

Description

For each input point cloud, sorts the segmentation results by point cloud quantity from large to small, retaining the top few point clouds. For example, setting to 1 means retaining only the largest result, 2 means retaining the top 2 results, 3 means retaining the top 3 results, and so on.

Parameter Range

[1, 1000], Default value: 1

Parameter Range

Values/Range: [1, 100]

Default: 1

Enable Node

Description

Controls whether the operator performs the operation.

Tuning Instructions

  • Enabled (Default): Runs the operator function normally.

  • Disabled: The operator performs no operation and directly outputs the input data.

Parameter Range

Default: True