重庆工商大学学报(自然科学版)2024,Vol.41Issue(5):58-64,7.DOI:10.16055/j.issn.1672-058X.2024.0005.007
基于改进Canny算法的焊缝图像边缘检测
Edge Detection of Weld Seam Images Based on Improved Canny Algorithm
摘要
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.关键词
边缘检测/中值滤波/非极大值抑制/双阈值法Key words
edge detection/median filtering/non-maximum suppression/dual-threshold method分类
信息技术与安全科学引用本文复制引用
缪红超,窦易文,张丽平,龚佳乐,高依婷..基于改进Canny算法的焊缝图像边缘检测[J].重庆工商大学学报(自然科学版),2024,41(5):58-64,7.基金项目
安徽省高校协同创新计划项目(GXXT-2019-007) (GXXT-2019-007)
安徽工程大学校级科研项目(XJKY072019A02). (XJKY072019A02)