计算机科学 ›› 2013, Vol. 40 ›› Issue (Z11): 354-356.

• 数字信息处理 • 上一篇    下一篇

基于八方向Sobel算子的边缘检测算法

郑英娟,张有会,王志巍,张静,范胜娟   

  1. 河北师范大学数学与信息科学学院 石家庄050024;河北师范大学数学与信息科学学院 石家庄050024;河北师范大学数学与信息科学学院 石家庄050024;石家庄学院 石家庄050035;河北师范大学数学与信息科学学院 石家庄050024
  • 出版日期:2018-11-16 发布日期:2018-11-16
  • 基金资助:
    本文受国家自然科学基金项目(11201113),河北省科学技术研究与发展计划项目(12226508)资助

Edge Detection Algorithm Based on the Eight Directions Sobel Operator

ZHENG Ying-juan,ZHANG You-hui,WANG Zhi-wei,ZHANG Jing and FAN Sheng-juan   

  • Online:2018-11-16 Published:2018-11-16

摘要: 针对传统图像边缘检测方法检测效果不理想的问题,提出一种基于八方向Sobel算子的边缘检测算法。采用0°、22.5°、45°、67.5°、90°、112.5°、135°、157.5° 8个方向的模板进行检测,能较好地检测出不同方向的边缘。在检测过程中,考虑到邻域内像素到中心像素距离不同,对中心像素的贡献不同,算法 根据该像素到中心像素欧氏距离对邻域内像素进行加权,使得距中心像素越近,其权值越大。实验表明,算法检测出的图像边缘较为完整,轮廓线清晰且连续性较好。

关键词: 边缘检测,Sobel算子,八方向,权值

Abstract: An edge detection algorithm based on eight directions sobel operator is proposed for the problem that traditional edge detection method’s result is not satisfactory. The algorithm based on eight templates of 0°,22.5°,45°,67.5°,90°,112.5°,135° and 157.5° different directions is used to detect edges better in different directions. In the detection process,we take into account that the distance of neighborhood pixel to the center pixel is different,the contribution of the neighborhood pixel to the center pixel is different. This algorithm weights the neighborhood pixel according to the Euclidean of it to the center pixel. We let the pixel nearer to the center pixel has greater weight. The experimental results show that the new algorithm can detect the image edge relatively complete,with clear contours and better continuity.

Key words: Edge detection,Sobel operator,Eight directions,Weight

[1] 杨淑莹.VC++图像处理程序设计[M].北京,清华大学出版社,2005:122-138
[2] Deng G.Differentiation-based edge detection using the logarith -mic image processing model [J].Mathematical Imaging and Vi-sion.1998,8(2):161-180
[3] 何春华,张雪飞,胡迎春.基于改进soble算子的边缘检测算法的研究[J].光学技术, 2012
[4] 杨东华,李久贤,卞治国. Marr边缘检测算法研究[J].中国图象图形学报,2006
[5] 任洪娥,刘冕,董本志.基于改进形态学算子的木粉边缘检测算法[J].计算机工程与应用,2013
[6] 张小琳.图像边缘检测技术综述[J].高能量密度物理,2007
[7] 毛元,冯桂,汤继生.采用八方向gabor滤波的指纹识别算法 [J].华侨大学学报:自然科学报,2013,4(2):151-155
[8] 崔建军,詹世富,郑雄伟.一种改进的图像边缘检测算法[J].地球科学与环境学报,2008,0(3)
[9] Canny J F.A computational approach to edge detection [J].IEEE Trans Pattern Analysis and Machine Intelligence,1986,8(6):679-698
[10] 姚行中,胡汉平,鲁统伟.一种基于猫视皮层细胞机制的改进soble算子[J].计算机工程与应用,2007,3(31):64-67
[11] 景雨,安居白,刘朝霞.基于动态分块阈值去噪和改进的GDNI边缘连接的溢油遥感图像的边缘检测算法[J].计算机科学,2011,8(11):282-285
[12] 李杰,苗长云,武志刚,等.基于数学形态学的图像边缘检测算法的研究[J].计算机科学,2012,9(6A):546-548

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!