基于改进 Canny 算法的焊缝图像边缘检测
DOI:
作者:
作者单位:

作者简介:

通讯作者:

基金项目:


Edge Detection of Weld Seam Images Based on Improved Canny Algorithm
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
    摘要:

    目的 针对复杂环境下焊缝图像的边缘检测问题,基于传统的 Canny 算法,将中值滤波替换高斯滤波,并将非 极大值抑制( NMS) 进行改进,得到一种面向复杂环境的改进 Canny 算法的焊缝图像边缘检测方法。 方法 对焊缝图 像进行中值滤波,保留图像的边缘信息,平滑区域内的细节,接着利用梯度方向局部均值偏差进行改进的非极大值 抑制,综合考虑梯度幅值的大小和梯度方向对焊缝边缘检测的影响,最后使用双阈值法检测和连接边缘,根据焊缝 图像的特点选择相应的阈值,既可以保证边缘检测的结果的准确性,也可以有效地避免一些噪声干扰。 结果 与传 统的 Canny 算法和其他一些滤波器改进的 Canny 算法等进行对比分析,所提出的方法的边缘保持度和边缘线性连 接程度效果是最好的,边缘保持可以使检测结果保留原始焊缝图像的 60%左右,同时边缘的连接程度相较于传统 的 Canny 算法均有所提升,并且对焊缝图像中伪边缘的抑制效果也有所改善。 结论 所提出的改进的 Canny 算法通 过对滤波、NMS 算法的综合优化,可以有效地检测出焊缝图像中的边缘信息,且有良好的焊缝图像边缘检测效果。 关键词:边缘检测;中值滤波;非极大值抑制;双阈值法

    Abstract:

    Objective In response to the edge detection of weld seam images in complex environments an improved Canny algorithm for edge detection of weld seam images in complex environments was proposed based on the traditional Canny algorithm replacing Gaussian filtering with median filtering and improving the non-maximum suppression NMS . Methods The weld seam image was subjected to median filtering to preserve edge information and smooth details within the area followed by improved NMS using the local mean deviation of the gradient directions. The influence of gradient amplitude and gradient direction on weld seam edge detection was considered. Finally the dual-threshold method was used to detect and connect edges. The appropriate threshold was selected based on the characteristics of the weld seam image to ensure the accuracy of edge detection results while effectively avoiding some noise interference. Results Compared with the traditional Canny algorithm and other Canny algorithms with improved filters the proposed method achieves the best edge retention and edge linearity. Edge retention can preserve approximately 60% of the original weld seam image and the degree of edge connection is improved compared with the traditional Canny algorithm with enhanced suppression of pseudo edges in the weld seam images. Conclusion The improved Canny algorithm through comprehensive optimization of filtering and NMS algorithms can effectively detect edge information in weld seam images and achieve good edge detection results for weld seam images.

    参考文献
    相似文献
    引证文献
引用本文

缪红超,窦易文,张丽平,龚佳乐,高依婷.基于改进 Canny 算法的焊缝图像边缘检测[J].重庆工商大学学报(自然科学版),2024,41(5):58-64
MIAO Hongchao, DOU Yiwen, ZHANG Liping, GONG Jiale, GAO Yiting. Edge Detection of Weld Seam Images Based on Improved Canny Algorithm[J]. Journal of Chongqing Technology and Business University(Natural Science Edition),2024,41(5):58-64

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
历史
  • 收稿日期:
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2024-09-29
×
2024年《重庆工商大学学报(自然科学版)》影响因子显著提升