Global Canny algorithm based on Canny edge detector framework in magnetic resonance imaging


  • Tengku Ahmad Iskandar Tengku Alang Universiti Teknologi Malaysia
  • Tan Tian Swee Universiti Teknologi Malaysia
  • Tan Jia Hou Universiti Teknologi Malaysia
  • Leong Kah Meng Universiti Teknologi Malaysia
  • Sameen Ahmed Malik Universiti Teknologi Malaysia
  • Muhammad Amir Asari Universiti Teknologi Malaysia
  • Azhany Yaakub Hospital Universiti Sains Malaysia
  • Hum Yan Chai Universiti Tunku Abdul Rahman
  • Juhara Haron Hospital Universiti Sains Malaysia



Edge detection, Non-local means, Canny edge detector, Magnetic resonance images, Segmentation


Magnetic resonance imaging is an important modality in the diagnosis and pathology detection. Edge detection is used for image segmentation and feature extraction as part of the medical image analysis. There is no ideal and universal algorithm which performs perfectly under all conditions. Conventional Canny edge detector is not suitable to be used in Magnetic resonance images that contaminated by Rician noise. In this paper, we propose the use of customized non-local means into the Canny edge detector instead of Gaussian smoothing in the conventional Canny edge detector to effectively remove Rician noise while preserving edges in Magnetic resonance image of an internal organ. The result shows that our method can yield better edge detection than conventional method, with minimal false edge detection. The proposed method undergoes several attempts of parameter adjustment to detect true edges successfully using optimal parameter setting.

Author Biographies

Tengku Ahmad Iskandar Tengku Alang, Universiti Teknologi Malaysia

Department of Biotechnology and Medical Engineering, Faculty of Biosciences and Medical Engineering

Tan Tian Swee, Universiti Teknologi Malaysia

Tan Tian Swee is working as Senior Lecturer and Program Manager in the Faculty of Biomedical Engineering, UTM. He received both his M.Sc. degree and Doctorate degree back in the year 2004 and 2008 respectively from the Universiti Teknologi Malaysia.  His research area encompasses the area of Digital Signal Processing and has published numerous high impact factor journals. He is a member of the Medical Device and Technology Group (MediTEG) and Frontier Materials research alliances

Tan Jia Hou, Universiti Teknologi Malaysia

Department of Biotechnology and Medical Engineering, Faculty of Biosciences and Medical Engineering

Leong Kah Meng, Universiti Teknologi Malaysia

Department of Biotechnology and Medical Engineering, Faculty of Biosciences and Medical Engineering

Sameen Ahmed Malik, Universiti Teknologi Malaysia

Sameen Ahmed Malik is currently undertaking PhD Biomedical Engineering in the Faculty of Biomedical Engineering, Universiti Teknologi Malaysia (UTM). He received his BEng (Honours) Electrical & Electronics degree from University of South Wales-UK in 2012 followed by MSc degree in Biomedical Engineering from UTM in 2016. His research is on biosciences and biomedical engineering with focus on ultraviolet light disinfection.

Muhammad Amir Asari, Universiti Teknologi Malaysia

Department of Biotechnology and Medical Engineering, Faculty of Biosciences and Medical Engineering






Azhany Yaakub, Hospital Universiti Sains Malaysia

Department of Ophthalmology


Hum Yan Chai, Universiti Tunku Abdul Rahman

Lee Kong Chiang Faculty of Engineering And Science


Juhara Haron, Hospital Universiti Sains Malaysia

Department of Radiology


Agaian, S., Almuntashri, A., Papagiannakis, A. T. (2009). An improved Canny edge detection application for asphalt concrete. 2009 IEEE International Conference on Systems, Man and Cybernetics, 1-14 October 2009. San Antonio, TX, USA: IEEE, 3683–3687.

Mukherjee, A., Kundu, D. (2013). Motion analysis in video surveillance using edge detection techniques. IOSR Journal of Computer Engineering (IOSR-JCE) , 12(6), 10–15.

Aslam, A., Khan, E., Sufyan Beg, M. (2015). Improved edge detection algorithm for brain tumor segmentation. Procedia - Procedia Computer Science, 58, 430–437.

Bandyopadhyay, S. K. (2012). Edge detection from CT images of lung. International Journal Of Engineering Science & Advanced Technology, 2(1), 34–37.

Benson, E. R., Reid, J. F., Zhang, Q. (2003). Machine vision-based guidance system for agricultural grain harvesters using cut-edge detection. Biosystems Engineering, 86(4), 389–398.

Buades, A., Coll, B., Morel, J.-M. J.-M. (2005). A non-local algorithm for image denoising. 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'05). 20-25 June 2005. San Diego, CA, USA, USA: IEEE, 60-65.

Canny, J. (1986). A computational approach to edge detection. IEEE Transactions on Pattern Analysis and Machine Intelligence, 8(6), 679–698.

Chai, H., Wee, L. K., Supriyanto, E. (2012). Edge detection in ultrasound images using speckle reducing anisotropic diffusion in canny edge detector framework. WSEAS Transactions on Biology and Biomedicine, 8(2), 51–60.

Chai, H. Y., Wee, L. K., Swee, T. T., Hussain, S. (2011). Gray-level co-occurrence matrix bone fracture detection. WSEAS Transactions on Systems, 10(1), 7–16.

Chai, H. Y., Wee, L. K., Swee, T. T., Salleh, S. H. (2011). Adaptive crossed reconstructed (ACR) Kmean clustering segmentation for computeraided bone age assessment system. International Journal of Mathematical Models and Methods in Applied Sciences, 5(3), 628–635.

Shubhangi, D. C., Chinchansoor, R. S., Hiremath, P. (2012). Edge detection of femur bones in X-ray images – A comparative study of edge detectors. International Journal of Computer Applications, 42(2), 975–8887.

Deng, C., Wang, G., Yang, X. (2013). Image edge detection algorithm based on improved canny operator. 2013 International Conference on Wavelet Analysis and Pattern Recognition, Tianjin, 14-17 July, 2013 (14–17).

Dhankhar, P., Sahu, N. (2013). A review and research of edge detection techniques for image segmentation. International Journal of Computer Science and Mobile Computing, 2(July), 86–92.

Giuliani, D. (2012). Edge detection from MRI, DTI images with an anisotropic vector field flow using a divergence map. Algorithms, 5(4), 636–653.

Gudbjartsson, H., Patz, S. (1995). The rician distribution of noisy mri data. Magnetic Resonance in Medicine, 34(6), 910–914.

Gupta, R. (2016). Enhanced edge detection technique for satellite images. International Conference on Cloud Computing and Security. 29-31 July 2016. Nanjing, China : Springer, 273–283.

Hou, X., Dong, Y., Zhang, H., Gu, J. (2009). Application of a self-adaptive Canny algorithm for detecting road surface distress image. 2009 Second International Conference on Intelligent Networks and Intelligent Systems. 1-3 November 2009. Tianjin, China: IEEE, 354–357.

Huertas, A., Medioni, G. (1986). Detection of intensity changes with subpixel accuracy using Laplacian-Gaussian masks. IEEE Transactions on Pattern Analysis and Machine Intelligence, PAMI-8(5), 651–664.

Jena, K. K., Mishra, S., Mishra, S. (2015). Edge detection of satellite images : A comparative study. International Journal of Innovative Science, Engineering & Technology, 2(3), 75–79.

Jia, J. (2009). A machine vision application for industrial assembly inspection. 2009 Second International Conference on Machine Vision. 28-30 December 2009. Dubai, United Arab Emirates: IEEE, 172–176.

Jia, X. (2010). Fabric defect detection based on open source computer vision library OpenCV. In 2010 2nd International Conference on Signal Processing Systems. 5-7 July 2010. Dalian, China: IEEE, 342-345.

Karamiani, A., Farajzadeh, N. (2014). Detecting and tracking moving objects in video sequences using moving edge features. Scientific Cooperations International Workshops on Electrical and Computer Engineering Subfields, (August), 88–92.

Khadse, M. V, Kale, N. S. (2016). An effective object detection video surveillance and alert system. IJCA Proceedings on National Conference on Advances in Computing, Communication and Networking . 18-22 June 2016. Jalgaon, Maharashtra, India: IJCA, pp. 18–21.

Kumar, B. K. S. (2013). Image denoising based on non-local means filter and its method noise thresholding. Signal, Image and Video Processing, 7(6), 1211–1227.

Lakhani, K., Minocha, B., Gugnani, N. (2016). Analyzing edge detection techniques for feature extraction in dental radiographs. Perspectives in Science, 8(4), 395–398.

Lakshmi, S., Sankaranarayanan, D. V. (2010). A study of edge detection techniques for segmentation computing approaches. International Journal of Computer Applications, CASCT(1), 35–41.

Li, E. Sen, Zhu, S. L., Zhu, B. S., Zhao, Y., Xia, C. G., Song, L. H. (2009). An adaptive edge-detection method based on the Canny operator. Proceedings - 2009 International Conference on Environmental Science and Information Application Technology, ESIAT 2009, 1(3). 4-5 July 2009. Wuhan, China: IEEE, 465–469.

Mordvintsev, A., K, A. (2013). Canny edge detection - OpenCV-Python Tutorials 1 documentation. Retrieved September 25, 2017, from

Muthukrishnan, R., Radha, M. (2011). Edge detection techniques for MRI Brain Image Segmentation. International Journal of Computer Science and Information Technology, 3(6), 259–267.

Nercessian, S. C., Agaian, S. S., Panetta, K. A. (2009). A generalized set of kernels for edge and line detection. Proceedings of SPIE, 7245. San Jose, California, United States, 1-12.

Nguyen, T. B., & Ziou, D. (2000). Contextual and non-contextual performance evaluation of edge detectors. Pattern Recognition Letters, 21(9), 805–816.

Nikolic, M., Tuba, E., Tuba, M. (2016). Edge detection in medical ultrasound images using adjusted canny edge detection algorithm. IEEE Transactions on Image Processing, 0–3.

Pal, N. R., Pal, S. K. (1993). A review on image segmentation techniques. Pattern Recognition, 26(9), 1277–1294.

Pellegrino, F. A., Vanzella, W., Torre, V. (2004). Edge detection revisited. IEEE Transactions on Systems, Man, and Cybernetics, Part B: Cybernetics, 34(3), 1500–1518.

Pietikainen, M., Okun, O. (2001). Edge-based method for text detection from complex document images. Proceedings of Sixth International Conference on Document Analysis and Recognition. 13 September 2001. (Seattle, WA: IEEE, 8–13.

Punarselvam, E., Suresh, P. (2011). Edge detection of CT scan spine disc image using canny edge detection algorithm based on magnitude and edge length. 3rd International Conference on Trendz in Information Sciences & Computing (TISC2011). 8-9 December 2011. Chennai, India: IEEE, 136–140.

Qiu, K., Sun, K., Ding, K., Shu, Z. (2016). A fast and robust algorithm for road edges extraction from lidar data. International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences - ISPRS Archives, 41(July), 693–698.

Rumheller, D. M. (1993). General Expressions for Rician Density and Distribution Functions. IEEE Transactions on Aerospace and Electronic Systems, 29(2), 580–588.

Savant, S. (2014). A review on edge detection techniques for image segmentation. International Journal of Computer Science and Information Technologies, 5(4), 5898–5900.

Selvakumar, P., Hariganesh, S. (2016). The performance analysis of edge detection algorithms for image processing. 2016 International Conference on Computing Technologies and Intelligent Data Engineering (ICCTIDE’16). 7-9 January 2016. Kovilpatti, India: IEEE, 1–5.

Sijbers, J., den Dekker, A. J., Scheunders, P., Van Dyck, D. (1998). Maximum-likelihood estimation of Rician distribution parameters. IEEE Transactions on Medical Imaging, 17(3), 357–61.

Sirmacek, B., Unsalan, C. (2010). Road network extraction using edge detection and spatial voting. In International Conference on Pattern Recognition (pp. 3117–3120).

Voorhees, H., Poggio, T. (1987). Detecting textons and texture boundaries in natural image. Proceedings of the First International Conference on Computer Vision London. 8-11 June 1987. London: IEEE, 250–258.

Wang, B., Fan, S. (2009). An improved Canny edge detection algorithm. 2009 Second International Workshop on Computer Science and Engineering. 28-30 October 2009. Qingdao, China: IEEE, 497–500.

Yu, C., Song, Y., Meng, Q., Zhang, Y., Liu, Y. (2015). Text detection and recognition in natural scene with edge analysis. IET Computer Vision, 9(4), 603–613.

Zhang, B., Huang, W., Gong, L., Li, J., Zhao, C., Liu, C., Huang, D. (2015). Computer vision detection of defective apples using automatic lightness correction and weighted RVM classifier. Journal of Food Engineering, 146, 143–151.