filters.cluster¶
The Cluster filter first performs Euclidean Cluster Extraction on the input
PointView
and then labels each point with its associated cluster ID.
Cluster IDs start with the value 1. Points that don’t belong to any
cluster will are given a cluster ID of 0.
Example¶
{
"pipeline":[
"input.las",
{
"type":"filters.cluster"
},
{
"type":"writers.bpf",
"filename":"output.bpf",
"output_dims":"X,Y,Z,ClusterID"
}
]
}
Options¶
- min_points
- Minimum number of points to be considered a cluster. [Default: 1]
- max_points
- Maximum number of points to be considered a cluster. [Default: UINT64_MAX]
- tolerance
- Cluster tolerance - maximum Euclidean distance for a point to be added to the cluster. [Default: 1.0]