针对直线提取过程中的断裂问题,该文提出一种新的边缘拟合直线方法,首先采用Canny算法提取边缘图;接着利用改进ZS算法对边缘图进行细化处理;然后通过端点检测、交叉点跟踪、闭合边缘跟踪等方法,实现边缘链码的完整性提取;最后利用边缘链码跟踪顺序进行直线提取。通过多幅影像的实验结果表明,该文所提出的算法能够精确实现边缘直线信息的拟合,便于对影像结构信息的清晰理解。
Aiming at the problem of fracture produced in the process of straight line extraction,a new edge line fitting algorithm was presented in this paper.Firstly,edge images were extracted by Canny algorithm;Secondly,improved ZS thinning method was adopted for edge image;Thirdly,edge chain code was entirely extracted by the method of endpoint detection,crossing point tracing and closed edge following;finally,straight lines were extracted by tracking order of edge chain code.The experimental results of multiple images showed that edge straight lines can be accurately obtained by this algorithm,and which can be used for clear understanding of the structural information of the image.