线结构光三维扫描建模系统中最关键的一步是提取光条中心线,但环境中各种因素的干扰给中心线提取带来困难。针对线结构光条纹图像存在光斑干扰、光强分布不均、光条宽度差别大、背景复杂等多种问题,提出解决方案。首先采用 Otsu 对结构光图像二值化;其次采用改进 DBSCAN(density-based spatial clustering of applications with noise)算法保留核心点,去除边界点和噪声点;最后将核心点作为输入,构建图数据结构,采用适用于线结构光条纹图像的最短路径搜索算法得到光条中心线。实验结果表明,该算法运行时间在150 ms以内,误差在0。2像素以内,并适用于多种复杂环境,满足实时性、准确性和稳定性的要求。
Centerline extraction algorithm of structured light streak in a complex background
The most critical step in a line-structured light three-dimensional scan modeling system is to extract the centerline of the light stripe,but the interference of various environmental factors makes this extraction difficult.Several problems exists in a line-structured light streak image issues such as light spot interference,uneven distribution of light intensity,large differences in the width of the light bars,and complex background.This paper proposed a solution to overcome these problems.First,the structured light image is binarized using the Otsu method.Then,the improved density-based spatial clustering of applications with nose(DBSCAN)algorithm is used to retain the core points and remove the boundary and noise points.Finally,the core points are used as inputs to construct the graph data structure,and the shortest path search algorithm that fits the line-structured light streak image is used to obtain the center-line of the light streak.The experimental results show that the algorithm of this paper runs within 150 ms and the error is within 0.2 pixels.Moreover,this algorithm is applicable to various complex environments,meeting the requirements of real-time calculations,accuracy,and stability.