机械科学与技术2025,Vol.44Issue(4):625-631,7.DOI:10.13433/j.cnki.1003-8728.20230196
改进Canny算子在零件尺寸测量中的应用
Application of Improved Canny Operator in Size Measurement of Parts
张晓阳 1何军红 1牛云 1张御1
作者信息
- 1. 西北工业大学 航海学院,西安 710072
- 折叠
摘要
Abstract
At present,pixel level edge detection algorithm is often used in visual measurement of parts size,which cannot meet the high precision measurement requirements.To improve the precision of part size measurement,a subpixel level part size measurement method with the help of the improved Canny operator was proposed.Firstly,adaptive median-Gaussian filtering is used to filter the image of parts,which can effectively remove noise while preserving more edge information.Then the gradient of the image is calculated and the edge points are found by using the quadratic interpolation.Secondly,the link algorithm is used to link the edge points and perform double threshold processing to extract the image subpixel edge contour.Finally,the minimum external rectangle of the contour is obtained and the part size is obtained.Experimental results show that the present method can effectively solve the accurate positioning of the contour of parts,and the measurement error is below 1 pixel.It has high stability while ensuring the measurement accuracy and efficiency.关键词
视觉测量/Canny/亚像素边缘检测/二次插值/最小外接矩形Key words
vision measurement/Canny/sub-pixel edge detection/secondary interpolation/minimum external rectangle分类
计算机与自动化引用本文复制引用
张晓阳,何军红,牛云,张御..改进Canny算子在零件尺寸测量中的应用[J].机械科学与技术,2025,44(4):625-631,7.