现代制造工程 ›› 2025, Vol. 534 ›› Issue (3): 107-114.doi: 10.16731/j.cnki.1671-3133.2025.03.013

• 仪器仪表/检测/监控 • 上一篇    下一篇

基于双三次插值的Canny-Devernay亚像素图像边缘检测算法*

张喜民1,2, 詹海生2   

  1. 1 陕西国际商贸学院信息工程学院,西安 712046;
    2 西安电子科技大学计算机学院,西安 710071
  • 收稿日期:2024-08-08 发布日期:2025-03-28
  • 作者简介:张喜民,博士,教授,主要研究方向为机器视觉、计算机测控技术。詹海生,博士,副教授,主要研究方向为图像处理。E-mail:zczya@suhu.com;zhan_haisheng@vip.163.com
  • 基金资助:
    *陕西省自然科学基础研究计划项目(2024JC-YBMS-510);陕西省教育厅一般专项科研计划项目(22JK0274)

Research on Canny-Devernay subpixel image edge detection algorithm based on bicubic interpolation

ZHANG Ximin1,2, ZHAN Haisheng2   

  1. 1 School of Information Engineering,Shaanxi Institute of International Trade & Commerce, Xi’an 712046,China;
    2 School of Computer Science and Technology,Xidian University,Xi’an 710071,China
  • Received:2024-08-08 Published:2025-03-28

摘要: 为满足机器视觉精密尺寸测量对图像边缘深亚像素级定位和强抗噪能力的要求,提出了基于双三次插值的Canny-Devernay亚像素图像边缘检测算法。首先,采用中值滤波降低采集图像噪声;其次,通过双三次插值细分图像边缘;然后,运用最大化类间方差(Ostu)算法优化Canny-Devernay算法参数并改进轮廓生成步骤,精确提取亚像素边缘;最后基于高分辨率工业相机和高性能计算机构建实验系统,分别以OpenCV图像、USB接口插件采集图像为对象进行实验。实验结果表明,在相机标定精度为0.009 8毫米/像素的情况下,该算法边缘检测平均误差为0.006 85 mm,小于0.7像素,计算耗时偏差为7.68 ‰,其边缘定位精度、抗噪能力和算法稳定性均优于Canny算法、基于Zernike矩的算法以及Canny-Devernay算法,将用于研制某新型精密机器视觉尺寸测量设备。

关键词: 机器视觉, 边缘检测, 双三次插值, 滞后双阈值二值化, Canny-Devernay算法, 亚像素

Abstract: In order to meet the requirements of deep subpixel localization and strong noise resistance for image edge detection in machine vision precise measurement,a Canny-Devernay subpixel image edge detection algorithm based on bicubic interpolation was proposed. Firstly,the median filtering algorithm was used to reduce the noise in the acquired images. Secondly,the image edges were subdivided through bicubic interpolation. Finally,the contour generation step was optimized and Ostu algorithm was applied to obtain an adaptive threshold,which was passed into Canny-Devernay algorithm to achieve accurately extracting subpixel edges of image. An experimental system was developed by high-resolution industrial camera and high-performance computer,and experiments were carried out on the OpenCV image and the acquired images of USB interface plug-in parts as samples,which was done with camera calibration accuracy of 0.009 8 mm/pixels.The experimental results show that the average edge detection error of the proposed algorithm is 0.006 85 mm,which is less than 0.7 pixels,and the calculation time deviation is 7.68 ‰. The edge positioning accuracy,noise resistance and compute stability of the proposed algorithm were better than the Canny algorithm,the algorithm based on Zernike moments and the Canny-Devernay algorithm. The proposed algorithm can better meet the requirements of the stability,reliability and high-precision image edge detection for machine vision precise measurement,and would be used to develop a new type of machine vision dimensional precise measurement device.

Key words: machine vision, edge detection, bicubic interpolation, binary threshold with hysteresis, Canny-Devernay algorithm, subpixel

中图分类号: 


版权所有 © 《现代制造工程》编辑部 
地址:北京市东城区东四块玉南街28号 邮编:100061 电话:010-67126028 电子信箱:2645173083@qq.com
本系统由北京玛格泰克科技发展有限公司设计开发 技术支持:support@magtech.com.cn
访问总数:,当日访问:,当前在线: