计算机工程与应用 ›› 2015, Vol. 51 ›› Issue (20): 11-15.

• 博士论坛 • 上一篇    下一篇

一种印刷电路板缺陷图像边缘信息提取方法

乔闹生1,张  奋2   

  1. 1.湖南文理学院 物理与电子科学学院,湖南 常德 415000
    2.湖南文理学院 计算机科学与技术学院,湖南 常德 415000
  • 出版日期:2015-10-15 发布日期:2015-10-30

Method of defect image edge information extraction of printed circuit board

QIAO Naosheng1, ZHANG Fen2   

  1. 1.School of Physics and Electronics Science, Hunan University of Arts and Science, Changde, Hunan 415000, China
    2.School of Computer Science and Technology, Hunan University of Arts and Science, Changde, Hunan 415000, China
  • Online:2015-10-15 Published:2015-10-30

摘要: 为了较好地提取印刷电路板缺陷图像边缘信息,提出了基于二阶曲线拟合、模式聚类与阈值比较法相结合的印刷电路板缺陷图像边缘信息提取方法。首先分析了最小二乘法拟合的基本原理;然后在此基础上提出了采用二阶曲线拟合法来设定阈值进行拟合得到大致的图像边缘,并分析了其基本原理;最后在模式聚类基础上利用阈值比较法选择适当阈值截取拟合曲线得到图像边缘点、去除噪声边缘点,连接各个图像边缘点可得到缺陷图像的边缘信息。用由显微镜及CCD获取的4幅印刷电路板缺陷图像进行了实验;从实验主观效果看,用该方法提取出图像边缘信息的效果较好,图像边缘比较连续,噪声点极少;从实验客观效果评价看,用该方法所得到的图像边缘信息熵较大。实验结果表明,该方法结合了二阶曲线拟合、模式聚类与阈值比较法优点,可较好地提取出印刷电路板缺陷图像的边缘信息。

关键词: 边缘信息提取, 印刷电路板缺陷图像, 二阶曲线拟合, 阈值比较法, 最小二乘法, 模式聚类, Canny算子

Abstract: In order to extract the defect image edge information of printed circuit board better, an edge information extraction method for the printed circuit board defect image based on the combination of the second order curve fitting, pattern clustering and threshold comparison method is proposed in this paper. Firstly, the basic principle of least squares method is analyzed. Secondly, the fitting method by adopting second order curve fitting to intercalate threshold to obtain the rough image edges is proposed, and its basic principle is analyzed in detail. Finally, by using the threshold comparison method based on the pattern clustering, the image edge points are obtained and the noisy edge points are eliminated by selecting proper threshold to intercept the fitting curve, and the defect image edges information can be obtained by joining each image edge point. The edge information extraction experiment by using the four defect images of printed circuit board acquired by microscope and CCD is actualized. It can see from the subjective results that the images edge is more continuous by adopting this method, and it has lesser noise points. From the objective effect evaluation results, the image information entropy is bigger than that of other methods mentioned in this paper. The experimental results show that it can extract better the defect image edge information of printed circuit board because of the advantages of the two order curve fitting, the pattern clustering and the threshold comparison method are merged.

Key words: edge information extraction, printed circuit board defect image, second order curve fitting, threshold comparison method, least squares method, pattern clustering, Canny operator