计算机应用 ›› 2012, Vol. 32 ›› Issue (08): 2296-2298.DOI: 10.3724/SP.J.1087.2012.02296

• 图形图像技术 • 上一篇    下一篇

基于自适应阈值的改进Canny边缘检测方法

张帆,彭中伟,蒙水金   

  1. 湖南大学 电气与信息工程学院,长沙 410082
  • 收稿日期:2012-02-13 修回日期:2012-03-08 发布日期:2012-08-28 出版日期:2012-08-01
  • 通讯作者: 彭中伟
  • 作者简介:张帆(1963-),男,湖南长沙人,副教授,主要研究方向:智能信息处理、智能控制;
    彭中伟(1987-),男,湖南衡阳人,硕士研究生,主要研究方向:数字图像处理;
    蒙水金(1985-),男,广西桂林人,硕士研究生,主要研究方向:数字图像处理。
  • 基金资助:
    湖南省自然科学基金资助项目(2007JTl024)

Improved Canny edge detection method based on self-adaptive threshold

ZHANG Fan,PENG Zhong-wei,MENG Shui-jin   

  1. College of Electrical and Information Engineering, Hunan University, Changsha Hunan 410082, China
  • Received:2012-02-13 Revised:2012-03-08 Online:2012-08-28 Published:2012-08-01
  • Contact: PENG Zhong-wei

摘要: 传统的Canny边缘检测算子采用全局阈值选取方法,当图像的背景和目标灰度变化比较大时,采用全局阈值法将丢失一些局部边缘信息。针对该问题,提出了一种自适应求取动态阈值的改进Canny边缘检测方法。该方法利用图像的梯度方差作为判据对图像进行分块,继而对各子块运用最大类间方差法求得相应的阈值,并通过插值得到阈值矩阵,最后结合改进的边缘连接法对图像进行边缘检测。实验结果表明,该算法在具有良好的抗噪性能同时,具有很好的检测精度。

关键词: 边缘检测, Canny算子, 图像分块, 自适应阈值, 最大类间方差法, 边缘连接

Abstract: The traditional Canny operator uses the global threshold method, but when the gray of the input image's background and foreground change largely, the global threshold method will lose some weak edge. Concerning this issue, an improved adaptive Canny operator was put forward. Firstly, the image was divided into blocks according to the gradient variance. Secondly, the threshold of the sub blocks was obtained by Otsu method. Then, the threshold matrix was got by interpolation. Finally, an improved edge connection algorithm was proposed to extract the edge with the threshold matrix. The experimental results show that the improved Canny algorithm has not only a good anti-noise function, but also a very good precision.

Key words: edge detection, Canny operator, image partition, adaptive threshold, Otsu method, edge connection

中图分类号: