Comparative Analysis of Sobel, Prewitt, and Canny Methods in Detecting Object Edges in Betta Fish Images

Authors

  • Alfin Alfarizi Universitas Islam Negeri Sumatera Utara
  • Cici El Dirrah Syafitri Simanungkalit Universitas Islam Negeri Sumatera Utara
  • Fahmi Nur Alimsyah Purba Universitas Islam Negeri Sumatera Utara
  • Lailan Sofinah Harahap Universitas Islam Negeri Sumatera Utara

DOI:

https://doi.org/10.59934/jaiea.v5i3.2293

Keywords:

Image Processing, Edge Detection, Sobel, Prewitt, Canny, Betta Fish

Abstract

Edge detection is a crucial stage in digital image processing for recognizing the shape and structure of an object. The application of edge detection to betta fish images presents a unique challenge due to their layered, intricately textured, and often semi-transparent fin morphology. This study aims to analyze and compare the performance of three edge detection algorithms, namely Sobel, Prewitt, and Canny, in extracting shape features from betta fish images. The research methodology involved converting the dataset images into a grayscale format and subsequently implementing the three algorithms using the OpenCV library in the Python programming language. The evaluation was conducted visually by observing the sharpness of the edge lines, object continuity, and the occurrence of noise. The results indicate that the Canny algorithm provides the most optimal performance, as it is capable of detecting the thin edge lines of the fish fins with greater detail and continuity due to its hysteresis thresholding process. Meanwhile, the Sobel and Prewitt methods produced thicker edge lines but were less sensitive to the details of the transparent fins. This study is expected to serve as a reference in selecting the appropriate segmentation method for biological objects with complex morphologies.

Downloads

Download data is not yet available.

References

D. Anggraini, P. Hapsari, and W. K. Nofa, “Perbandingan Efektivitas Metode Canny-Robert Untuk Deteksi Tepi Citra Grayscale Terhadap Noise,” J. Surya Inform., vol. 15, no. 1, pp. 20–28, 2025.

L. Khoirani, R. Ariansyah, and S. Supiyandi, “Aplikasi Pengolahan Citra Untuk Peningkatan Deteksi Tepi Melalui Segmentasi Citra,” Mars J. Tek. Mesin, Ind. Elektro Dan Ilmu Komput., vol. 2, no. 3, pp. 196–203, 2024.

M. S. Moelya, “Perbandingan Metode Canny, Sobel, Dan Laplacian Of Gaussian Dalam Mendeteksi Tepi Citra Objek Bergerak,” J. Sist. Inf. TGD, vol. 3, no. 4, pp. 450–460, 2024.

A. Herlambang and A. Rahmatulloh, “Peningkatan Akurasi Deteksi Tepi Pada Citra Inversi Menggunakan Sobel-Canny-Prewitt,” J. Inform. & Multimed., vol. 17, no. 1, pp. 42–49, 2025.

R. S. Firzanah, N. Z. Anugrani, K. Samsidar, and T. A. Ayyubi, “Implementasi Metode Thresholding Untuk Segmentasi Citra Digital Dalam Lingkungan Visual Studio Code,” MAPLE Mechatronics J. Prof. Entrep., vol. 6, no. 1, pp. 1–8, 2024.

M. R. Qisthiano and A. O. Pratiwi, “Deteksi Tepi Pada Citra Objek Benda Menggunakan Algoritma Sobel dan Prewitt dengan Python,” J. Inform. dan Tek. Elektro Terap., vol. 13, no. 2, pp. 45–52, 2025.

P. Widodo and B. Santoso, “Evaluasi Kinerja Operator Prewitt dan Canny untuk Pengolahan Citra Digital Berbasis OpenCV,” J. Ilm. Teknol. Inf., vol. 23, no. 1, pp. 55–62, 2025.

M. P. Sari and A. Nugroho, “Implementasi Teknik Image Enhancement dan Deteksi Tepi Pada Pengenalan Pola Objek,” J. Teknol. Inf. dan Ilmu Komput., vol. 11, no. 3, pp. 405–412, 2024.

D. Pratama and E. Haryanto, “Analisis Komputasional Algoritma Canny dan Prewitt dalam Pemrosesan Matriks Citra Digital,” J. CoreIT, vol. 11, no. 2, pp. 150–158, 2025.

T. S. R. Dini and others, “Penerapan Python Dalam Perbandingan Metode Deteksi Tepi (Sobel, Prewitt, Canny) Untuk Analisis Pengenalan Pola Pada Daun,” J. Publ. Ilmu Komput. dan Multimed., vol. 4, no. 2, pp. 95–105, 2025.

T. Hidayat and R. Putra, “Komparasi Akurasi Ekstraksi Fitur Bentuk Pada Objek Biologis Menggunakan Metode Sobel dan Canny,” J. Komput. Terap., vol. 11, no. 1, pp. 22–30, 2025.

K. D. Verado, Y. F. Riti, and N. E. Mongkol, “Perbandingan Algoritma Sobel, Kirsch, Laplacian of Gaussian dan Canny Untuk Deteksi Pada Citra Keretakan Dinding,” J. Ilm. Komput. dan Inform., vol. 14, no. 1, pp. 1–10, 2025.

A. Setiawan and F. Ramadhani, “Analisis Perbandingan Deteksi Tepi Canny dan Sobel Pada Citra Medis Menggunakan Python,” J. RESTI (Rekayasa Sist. dan Teknol. Informasi), vol. 8, no. 2, pp. 112–119, 2024.

Y. F. Riti and others, “Perbandingan Algoritma Sobel, Prewitt, Robert, Canny, Kirsch, dan Laplacian of Gaussian Dalam Deteksi Tepi Pada Citra Rontgen,” J. TEKTRIKA, vol. 9, no. 2, pp. 41–50, 2024.

Downloads

Published

2026-06-02

How to Cite

Alfin Alfarizi, Cici El Dirrah Syafitri Simanungkalit, Fahmi Nur Alimsyah Purba, & Lailan Sofinah Harahap. (2026). Comparative Analysis of Sobel, Prewitt, and Canny Methods in Detecting Object Edges in Betta Fish Images. Journal of Artificial Intelligence and Engineering Applications (JAIEA), 5(3), 3879–3884. https://doi.org/10.59934/jaiea.v5i3.2293

Issue

Section

Articles