影像科学与光化学 ›› 2016, Vol. 34 ›› Issue (1): 116-121.DOI: 10.7517/j.issn.1674-0475.2016.01.116

• 论文 • 上一篇    

一种新的改进Canny图像边缘检测算法

吴翔, 于微波, 马艳辉, 刘克平   

  1. 长春工业大学电气与电子工程学院, 吉林长春 130012
  • 收稿日期:2015-09-28 修回日期:2015-11-04 出版日期:2016-01-15 发布日期:2016-01-15
  • 通讯作者: 于微波
  • 基金资助:

    吉林省科技发展计划项目(社发处)(20140204029)和吉林省科技发展项目(高新处)(20140204026)资助

A New Improved Canny Image Edge Detection Algorithm

WU Xiang, YU Weibo, MA Yanhui, LIU Keping   

  1. School of Electrical & Electronic Engineering, Changchun University of Technology, Changchun 130012, Jilin, P. R. China
  • Received:2015-09-28 Revised:2015-11-04 Online:2016-01-15 Published:2016-01-15

摘要:

针对传统的Canny算法在平滑滤波时对图像边缘检测的影响,以及需要预先设定高低阈值等缺点,本文提出了一种新的Canny边缘检测算法。首先采用自适应中值滤波对图像进行处理;其次,添加45°和135°方向的梯度模板来计算梯度幅值;最后,采用Otsu算法计算经梯度幅值运算得到图像的高低阈值。实验结果表明,该改进的Canny算法具有良好的抗噪性能,并且能精确的检测出边缘信息。

关键词: 边缘检测, 中值滤波, 梯度幅值, Canny算子

Abstract:

A new adaptive Canny operator is proposed which aimed the image edge areas effect when traditional Canny operator under Gaussian smooth and the shortcomings of threshold level pre-set. Firstly, the adaptive median filtering is adopted to process it; secondly, adding the 45° and 135° direction of gradient template to calculate gradient amplitude; finally, using the Otsu algorithm to calculate the gradient amplitude operation get images of high and low threshold value. The experiment results show that the improved Canny algorithm has good anti-noise performance, and can accurately detect the edge information.

Key words: edge detection, median filtering, gradient amplitude, Canny detector