The Improved Canny Edge Detection Algorithm Based on an Anisotropic and Genetic Algorithm

  • Mingjie Wang
  • Jesse S. JinEmail author
  • Yifei Jing
  • Xianfeng Han
  • Lei Gao
  • Liping Xiao
Conference paper
Part of the Communications in Computer and Information Science book series (CCIS, volume 634)


Edge detection plays a crucial role in image processing. This paper proposes an improved Canny edge detection algorithm to deal with existing problems in traditional algorithms. Firstly, we use the anisotropic filter to denoise original grayscale images. This method can effectively suppress noise and preserve the edge feature. Secondly, the paper searches optimizing high and low thresholds used in Canny operator utilizing genetic algorithm based on the Otsu evaluative function to avoid human factors. In our experiment, we got the optimizing value (227, 84), and the interclass variance (3833) for image Lena. Compared with the traditional operator, this improved algorithm can reduce the false positive rate and improve the accuracy of detection. Meanwhile, the experiment shows that the algorithm is also robust in pedestrian detection.


Canny Anisotropic filter Genetic algorithm OTSU Adaptation 


  1. 1.
    Wang, Z., Wu, F.: Inertial product energy and edge detection. Chin. J. Comput. 32(11), 2212–2219 (2009)Google Scholar
  2. 2.
    Feng, K., Zhu, M., Zhong, Y., Fan, L.: An improved Canny edge detection AGT algorithm. Comput. Appl. Softw. 29(3), 265–266 (2012)Google Scholar
  3. 3.
    Canny, J.: A computational approach to edge detection. IEEE Trans. Pattern Anal. Mach. Intell. 8(6), 679 (1986)CrossRefGoogle Scholar
  4. 4.
    Wang, H., Zhang, K., Li, Y.: Anisotropic Gaussian filtering for infrared image. J. Infrared Millim. Waves 24(2), 110–111 (2005)Google Scholar
  5. 5.
    Zhang, Z., Xi, J., Liu, Y.: Canny operator study based on GCV criteria and Otsu. Comput. Sci. 40(6), 279–282 (2013)Google Scholar
  6. 6.
    Huang, J., Chen, B.: An optimal algorithm of edge detection based on Canny. Comput. Simul. 27(4), 252–255 (2010)Google Scholar
  7. 7.
    Li, M., Yan, J., Li, G., Zhao, J.: Self-adaptive Canny operator edge detection technique. J. Harbin Eng. Univ. 28(9), 1002–1007 (2007)MathSciNetzbMATHGoogle Scholar
  8. 8.
    Lian, R., Wang, W.: Anisotropic diffusion and adaptive smoothing algorithm. Comput. Eng. Appl. 49(20), 141–144 (2013)Google Scholar
  9. 9.
    Wang, N., Zhao, H., Ju, S., Du, H.: An improved Canny edge detection self-adaptive algorithm. J. Sichuan Univ. (Nat. Sci. Ed.) 51(3), 479–482 (2014)Google Scholar
  10. 10.
    Health, D.M., Sarkar, S., Sanocki, T.: A robust visual method for assessing the relative performance of edge-detection algorithms. IEEE Trans. Pattern Anal. Mach. Intell. 19(12), 1338–1358 (1997)CrossRefGoogle Scholar
  11. 11.
    Chen, Y., Zhu, C.: Improved edge detection algorithm based on Canny operator. Comput. Appl. Softw. 25(8), 51–53 (2008)Google Scholar
  12. 12.
    Geng, H., Luo, M., Hu, F.: Improved self-adaptive edge detection method based on Canny. In: 2013 Fifth International Conference on Intelligent Human-Machine Systems and Cybernetics, Hangzhou, China (2003)Google Scholar

Copyright information

© Springer Science+Business Media Singapore 2016

Authors and Affiliations

  • Mingjie Wang
    • 1
  • Jesse S. Jin
    • 1
    • 2
    Email author
  • Yifei Jing
    • 1
  • Xianfeng Han
    • 1
  • Lei Gao
    • 2
  • Liping Xiao
    • 2
  1. 1.School of Computer SoftwareTianjin UniversityTianjinChina
  2. 2.Beijing Aerospace Institute of Automatic ControlBeijingChina

Personalised recommendations