电子科技 ›› 2023, Vol. 36 ›› Issue (10): 87-94.doi: 10.16180/j.cnki.issn1007-7820.2023.10.012

• • 上一篇    下一篇

基于多级优化的圆拟合算法

徐永亮,谢小辉   

  1. 苏州大学 机电工程学院,江苏 苏州 215000
  • 收稿日期:2022-06-28 出版日期:2023-10-15 发布日期:2023-10-20
  • 作者简介:徐永亮(1998-),男,硕士研究生。研究方向:图像处理。|谢小辉(1977-),男,博士,副教授。研究方向:机器视觉。
  • 基金资助:
    国家自然科学基金(61473200)

Circle Fitting Algorithm Based on Multilevel Optimization

XU Yongliang,XIE Xiaohui   

  1. School of Mechanical and Electrical Engineering, Soochow University,Suzhou 215000,China
  • Received:2022-06-28 Online:2023-10-15 Published:2023-10-20
  • Supported by:
    National Natural Science Foundation of China(61473200)

摘要:

针对圆拟合算法中难以同时保证高效率和高准确度的问题,文中提出一种基于多级优化的圆拟合算法。运用3σ准则剔除粗大误差点,从降低子集抽选的随机性、圆模型的降次运算以及自适应迭代次数的阈值变换3个角度对随机抽样一致性进行改进,以提取高质量内群点,并采用设置迭代终止条件的迭代加权最小二乘法实现点群的精细化处理。文中实验从缺损圆、杂质干扰以及其他噪声3个方面对算法效果进行了验证,并与其他主流圆拟合算法进行了对比分析。结果表明,文中算法在不同程度的圆缺损、杂质干扰下的拟合准确度小于0.7 pixel,拟合效果优于其他算法。在约20%~265%的噪声干扰下,拟合准确度不超过1 pixel,运行时间低于0.7 s,该结果表明文中所提算法能抵抗大量椒盐噪声干扰,并能维持较高的准确度和检测效率。

关键词: 图像处理, 圆拟合, 多级优化, 3σ准则, 随机抽样一致性, 最小二乘法, OpenCV, 机器视觉

Abstract:

In view of the problem that it is difficult to ensure high efficiency and high accuracy in circle fitting algorithm in the same time, a circle fitting algorithm based on multi-level optimization is proposed in this study. The 3σ criterion is used to remove the coarse error points, and the random sampling consistency is improved by reducing the randomness of subset selection, the descending operation of the circle model and the threshold transformation of the number of adaptive iterations, so as to extract the high quality internal group points. The iterative weighted least square method with iteration termination condition is applied to achieve the great processing of point groups. In this study, the effectiveness of the algorithm is verified from the three aspects of defect circle, impurity interference and other noise, and the proposed method is compared with other mainstream circle fitting algorithms. The results show that the fitting accuracy of the proposed algorithm is less than 0.7 pixels under different degrees of circular defect and impurity interference, and the algorithm performs better than other algorithms in fitting effect. In the case of the noise interference of about 20%~265%, the fitting accuracy of the algorithm does not exceed 1 pixel, and the running time is less than 0.7 s. These results indicate that the proposed algorithm can resist a large number of salt-and-pepper noise interference and maintain high accuracy and detection efficiency.

Key words: image processing, circle fitting, multilevel optimization, 3σ criterion, random sampling consensus, least square method, OpenCV, machine vision

中图分类号: 

  • TP391