分段
段将3-D范围数据组织成簇
句法
Description
细分有组织的3-D范围数据标签
= segmentlidardata(ptcloud
,,,,distThreshold
)ptcloud
into clusters. The function assigns an integer cluster label to each point in the point cloud and returns the cluster label of all points in标签
。
这function groups two neighboring points into the same cluster if their Euclidean distance is less thandistThreshold
or if the angle between the sensor and two neighboring points is at least 5 degrees.
sets the angle constraint for grouping points into the same cluster to标签
= segmentlidardata(ptcloud
,,,,distThreshold
,,,,Anglethreshold
)Anglethreshold
。
[[
also returns the number of clusters.标签
,,,,numClusters
] = segmentLidarData(___)
[[___] = segmentLidarData(___,numClusterPoints = [1,Inf])
还设置了每个群集中的最小值和最大点,指定为2元素向量或标量值。指定时numClusterPoints
作为标量,群集中的最大点是不受限制的。该功能设置标签
至0
当群集不在指定范围内。
Examples
Input Arguments
输出参数
Algorithms
这分段
function uses distance and angle thresholds to cluster neighboring points. The function groups two neighboring points into the same cluster if their Euclidean distance is less than the inputdistThreshold
or if the angle between the sensor and neighboring points is greater than or equal to the inputAnglethreshold
。If you do not specifyAnglethreshold
,,,,the function sets this angle to5
学位。
例如,假设Anglethreshold
is set to90
。由于图中的角度α和β都大于指定的90度阈值,因此函数组将A,B和C指向同一群集。由于角度σ小于90度阈值,因此函数组将D指向单独的群集。函数用于群集的每个角度都是由从一个点到传感器的线形成的,从同一点到相邻点的线
References
[[1] Bogoslavskyi, I. “Efficient Online Segmentation for Sparse 3D Laser Scans.”摄影测量,遥感和地球信息科学杂志。Vol. 85, Issue 1, 2017, pp. 41–52.