Comparison of Sobel, Prewitt, and Canny Edge Detection Methods in Digital Images

Authors

  • Diana Diana Bina Darma University
  • Delima Agustina Bina Darma University
  • Dian Yunita Situmorang Bina Darma University
  • Dasril Kholid Bina Darma University
  • Ahmad Rizki Pratama Bina Darma University

DOI:

https://doi.org/10.30871/jaic.v10i3.12860

Keywords:

Canny, Edge Detection, F-measure, Prewitt, Sobel

Abstract

Edge detection is a fundamental operation in digital image processing, enabling identification of object boundaries in an image. This study presents a systematic comparative evaluation of three widely used edge detection algorithms Sobel, Prewitt, and Canny applied to a dataset of 20 grayscale images (512×512 pixels) from the USC-SIPI Image Database, spanning four object categories: simple geometric objects, complex textures, low-noise conditions, and medium-noise conditions. Each method was evaluated using four metrics: Mean Square Error (MSE), Peak Signal-to-Noise Ratio (PSNR), precision/recall/F-measure (with Canny output as the reference ground truth for Sobel and Prewitt), and average computational time. All experiments were conducted in Python 3.10 with OpenCV 4.7 on a dedicated Intel Core i7 (11th Gen) workstation running Ubuntu 22.04 LTS with 16 GB RAM to ensure fair benchmarking. Results show that the Canny method consistently outperforms the others in detection quality, achieving the lowest average MSE (7.26), the highest average PSNR (40.06 dB), and the best F-measure (0.91), albeit at a 3–4× higher computational cost (8.76 ms vs. ~2.4 ms for Sobel/Prewitt). Sobel and Prewitt provide comparable speed with lower precision, making them suitable for real-time applications. Notably, under medium-noise conditions, Canny's MSE advantage widens markedly, highlighting its superior noise robustness. A brief comparison with modern deep learning-based approaches (HED, BDCN) contextualises classical methods within the current state of the art. The study concludes that Canny is the superior choice for high-accuracy tasks, while Sobel and Prewitt remain practical for latency-constrained environments..

Downloads

Download data is not yet available.

References

[1] R. C. Gonzalez and R. E. Woods, Digital Image Processing, 4th ed. Pearson Education, 2018.

[2] R. Szeliski, Computer Vision: Algorithms and Applications, 2nd ed. Springer, 2022.

[3] M. S. Nixon and A. S. Aguado, Feature Extraction and Image Processing for Computer Vision, 4th ed. Academic Press, 2019.

[4] J. Canny, "A computational approach to edge detection," IEEE Trans. Pattern Anal. Mach. Intell., vol. 8, no. 6, pp. 679-698, 1986.

[5] G. T. Shrivakshan and C. Chandrasekar, "A comparison of various edge detection techniques used in image processing," Int. J. Comput. Sci. Issues, vol. 9, no. 5, pp. 269-276, 2012.

[6] USC-SIPI, "The USC-SIPI Image Database," Univ. of Southern California, 2023. [Online]. Available: https://sipi.usc.edu/database/

[7] OpenCV Development Team, "OpenCV documentation: Edge detection," 2024. [Online]. Available: https://docs.opencv.org/4.x/

[8] R. Maini and H. Aggarwal, "Study and comparison of various image edge detection techniques," Int. J. Image Process., vol. 3, no. 1, pp. 1-11, 2009.

[9] S. Gupta and S. G. Mazumdar, "Sobel edge detection algorithm," Int. J. Comput. Sci. Manag. Res., vol. 2, no. 2, pp. 1578-1583, 2013.

[10] Dharampal and V. Mutneja, "Methods of image edge detection: A review," J. Elect. Electron. Syst., vol. 4, no. 2, pp. 1-5, 2015.

[11] S. M. Bhandarkar and H. Zhang, "Edge detection using neural networks with application to medical image processing," IEEE Trans. Neural Netw., vol. 8, no. 4, pp. 884-901, 1997.

[12] F. U. Siddiqui and N. A. M. Isa, "Enhanced moving object segmentation algorithm for noisy video sequences," Signal Process., vol. 91, no. 8, pp. 1966-1975, 2011.

[13] G. Bradski and A. Kaehler, Learning OpenCV: Computer Vision with the OpenCV Library. O'Reilly Media, 2008.

[14] D. Ziou and S. Tabbone, "Edge detection techniques: An overview," Int. J. Pattern Recognit. Image Anal., vol. 8, no. 4, pp. 537-559, 1998.

[15] S. Xie and Z. Tu, "Holistically-nested edge detection," in Proc. IEEE ICCV, 2015, pp. 1395-1403.

[16] J. He, S. Zhang, M. Yang, Y. Shan, and T. Huang, "Bi-directional cascade network for perceptual edge detection," in Proc. IEEE CVPR, 2019, pp. 3828-3837.

[17] W. Ke, J. Chen, J. Jiao, G. Zhao, and Q. Ye, "SRN: Side-output residual network for object symmetry detection in the wild," in Proc. IEEE CVPR, 2017. (Evaluation protocol reference: D. R. Martin, C. C. Fowlkes, and J. Malik, "Learning to detect natural image boundaries using local brightness, color, and texture cues," IEEE Trans. PAMI, vol. 26, no. 5, pp. 530-549, 2004)

Downloads

Published

2026-06-10

How to Cite

[1]
D. Diana, D. Agustina, D. Y. Situmorang, D. Kholid, and A. R. Pratama, “Comparison of Sobel, Prewitt, and Canny Edge Detection Methods in Digital Images”, JAIC, vol. 10, no. 3, pp. 2424–2430, Jun. 2026.

Similar Articles

<< < 1 2 3 4 5 > >> 

You may also start an advanced similarity search for this article.