Improved Edge Detection using Morphological Operation to Segmentation of Fingernail Images
Abstract
Accurate segmentation of fingernail images is essential for biomedical applications like dermatological diagnostics and nail disease assessments. This study compares traditional methods (Sobel and Canny edge detectors) with an improved method using adaptive thresholding and morphological closing for fingernail image segmentation. The methodology includes data collection, preprocessing, edge detection, segmentation, and evaluation. A dataset of 500 fingernail images (free of nail polish) was captured using a digital camera. Preprocessing involves grayscale conversion to simplify analysis and Gaussian smoothing to reduce noise while preserving key features. For segmentation, thresholding and K-means clustering isolate the fingernail from the background. Evaluation combines qualitative and quantitative analyses. Qualitative results demonstrate that the improved method consistently outperforms traditional techniques under diverse conditions. Quantitative evaluation, based on accuracy, recall, F1 score, and Intersection over Union (IoU), further supports these findings. The Sobel method achieves 0.80 accuracy, 0.77 recall, 0.87 F1 score, and 0.77 IoU. The Canny method achieves 0.82 accuracy, 0.78 recall, 0.88 F1 score, and 0.78 IoU. In contrast, the improved method achieves 0.97 accuracy, 0.98 recall, 0.99 F1 score, and 0.98 IoU. The results clearly show that the improved method, using adaptive thresholding and morphological closing, provides superior segmentation performance. Additionally, the approach remains computationally efficient, making it suitable for real-time applications in medical diagnostics.
Downloads
References
V. Saranya, Dr. A. Ranichitra, “Image Segmentation Techniques to Detect Nail Abnormalities”, International Journal of Computer Technology, Volume 8, No. 4, 2021, pp. 522-527.
Maniyan, P., & Shivakumar, B.L. “Early Disease Detection Through Nail Image Processing Based on Ensemble of Classifier Models”, IOSR Journal of Computer Engineering (IOSR-JCE), Volume 20, Issue 3, 2018, pp. 14-25.
Juna, V. V., D. Dhananjayan, “A Review on Nail Image Processing for Disease Detection”, Recent Trends in Analog Design and Digital Devices, Volume 2 Issue 3, 2019, pp. 1-7.
W. L. Ou, C.T. Li, D.C. Chen, “The Lightness Distribution of The Red Color for The Nail Plate Related to Human Healthy Level”, Community Medicine and Publich Health, Volume 9, Nomor 4, 2023, DOI://https://dx.doi.org/10.17352/2455-5479.000204.
T. S. Indi, Y. A. Gunge, “Early Stage Disease Diagnosis System Using Human Nail Image Processing”, I.J. Information Technology and Computer Science, 2016, pp. 30 -35. DOI: 10.5815/ijitcs.2016.07.05.
A. Singal, R. Arora, “Nail as a window of systemic diseases”, Indian Dermatol Online J. 2015 Mar-Apr; 6(2): 67–74. doi: 10.4103/2229-5178.153002
P. Eftekhar, "A comparative study of edge detection algorithms," Journal of Image Processing, vol. 12, no. 3, pp. 45-56, 2020.
A. D. Mayangsari, I. W. P. Agung, " A Systematic Literature Review: Performance Comparison of Edge Detection Operators in Medical Images," Jurnal ELTIKOM : Jurnal Teknik Elektro, Teknologi Informasi dan Komputer. 8, 1 (Jun. 2024), 9–25. 2024. https://doi.org/10.31961/eltikom.v8i1.1012
M. Rafati, M. Arabfard, M. R. Rahimzadeh, “Comparison of Different Edge Detections and Noise Reduction on Ultrasound Images of Carotid and Brachial Arteries Using a Speckle Reducing Anisotropic Diffusion Filter”, Iran Red Crescent Med J. 2014 Sep; 16(9): e14658. doi: 10.5812/ircmj.14658.
A. Baareh, A. Al-Jarrah, A. Smadi, and G. Shakah, “Performance Evaluation of Edge Detection Using Sobel, Homogeneity and Prewitt Algorithms”. Journal of Software Engineering and Applications, 11, 537-551. 2018. doi: 10.4236/jsea.2018.1111032.
Keene, L., Rogers, B., Stobbe, D. et al. “A Combination Interferometric And Morphological Image Processing Approach To Rapid Quality Assessment Of Additively Manufactured Cellular Truss Core Components”. Int J Adv Manuf Technol 125, 5047–5065 (2023). https://doi.org/10.1007/s00170-023-11054-4.
Seelaboyina, R., Vishwakarma, R. “Different Thresholding Techniques in Image Processing : A Review”. In: Kumar, A., Senatore, S., Gunjan, V.K. (eds) ICDSMLA 2021. Lecture Notes in Electrical Engineering, vol 947. Springer, Singapore. 2023. https://doi.org/10.1007/978-981-19-5936-3_3.
X. -W. Li, Y. -X. Kang, Y. -L. Zhu, G. Zheng and J. -D. Wang, "An improved medical image segmentation algorithm based on clustering techniques," 2017 10th International Congress on Image and Signal Processing, BioMedical Engineering and Informatics (CISP-BMEI), Shanghai, China, 2017, pp. 1-5, doi: 10.1109/CISP-BMEI.2017.8302178.
X. Yu, J. Wang, Q. Hong, R. Teku, S. Wang, Y. Zhang, “Transfer learning for medical images analyses: A survey”, Neurocomputing, Volume 489, 2022, Pages 230-254, ISSN 0925-2312, https://doi.org/10.1016/j.neucom.2021.08.159.
R. Javed, M. S. M. Rahim, T. Saba, and A. Rehman. "A comparative study of features selection for skin lesion detection from dermoscopic images." Network Modeling Analysis in Health Informatics and Bioinformatics 9, no. 1 (2020): 4.
D. S. Kumar, J. D. Sherly and S. I. Priyadharshini, "Disease Detection Based on Nail Color Analysis Using Image Processing," 2022 1st International Conference on Computational Science and Technology (ICCST), CHENNAI, India, 2022, pp. 1-5, doi: 10.1109/ICCST55948.2022.10040425.
S. Yunhong, Y. Shilei, Z. Xiaojing, Y. Jinhua, “Edge Detection Algorithm of MRI Medical Image Based on Artificial Neural Network”, Procedia Computer Science, Volume 208, 2022, Pages 136-144, ISSN 1877-0509, https://doi.org/10.1016/j.procs.2022.10.021.
A. Kalra, and R. L. Chhokar. "A Hybrid approach using sobel and canny operator for digital image edge detection." In 2016 International Conference On Micro-Electronics And Telecommunication Engineering (ICMETE), pp. 305-310. IEEE, 2016.
R. Anas, A. E. Hadeel, Elhadi, and A. S. Elmustafa. "Impact of edge detection algorithms in medical image processing." World Scientific News 118 (2019): 129-143.
I. Jailingeswari, " A Study on an Edge Detection and Feature Extraction in Automated Fingerprint Identification Systems," International Journal of Web Technology, Volume: 05 Issue: 02, December 2016, Pages: 107-110. ISSN: 2278-2389.
M. M. Amini, M. I. Mazdadi, M. Muliadi, M. R. Faisal, and T. H. Saragih, “Implementation of Extreme Learning Machine Method with Particle Swarm Optimization to Classify of Chronic Kidney Disease”, j.electron.electromedical.eng.med.inform, vol. 6, no. 4, pp. 499-508, Sep. 2024.
W. Rong, Z. Li, W. Zhang and L. Sun, "An improved Canny edge detection algorithm," 2014 IEEE International Conference on Mechatronics and Automation, Tianjin, China, 2014, pp. 577-582, doi: 10.1109/ICMA.2014.6885761.
R. C. Gonzalez, R. E. Woods, and S. L. Eddins, “Digital Image Processing Using MATLAB”, 3rd ed. Gatesmark Publishing. 2020.
J. Canny, "A Computational Approach to Edge Detection," IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 8, no. 6, pp. 679-698, Nov. 1986.
R. C. Gonzalez and R. E. Woods, “Digital Image Processing”, 4th ed. Pearson Education Limited, 2018.
R. Szeliski, “Computer Vision: Algorithms and Applications”. 2nd edition. 2022. [Online]. Available: http://szeliski.org/Book/
R. Hartley and A. Zisserman, “Multiple View Geometry in Computer Vision”, 2nd ed. Cambridge, UK: Cambridge University Press, 2004.
C. Solomon, T. Breckon, “Fundamentals of Digital Image Processing: A Practical Approach with Examples in Matlab”. Wiley-Blackwell, John Wiley and Sons, Ltd. 2011.
Rajab, M.I., “Performance Evaluation of Image Edge Detection Techniques”. Int. J. Comput. Sci. Secur.(IJCSS), 10(5), pp.170-185. 2016.
B. Bilal, A. Siti, O. Khairuddin, N. M. Faidzul. “Adaptive Thresholding Methods for Documents Image Binarization”. 6718. 2011. 230-239. DOI : 10.1007/978-3-642-21587-2_25.
L. Roberto, A. Romaric, S. André, M. Rubens. “Chapter Six - Morphological Image Processing”. Book: Microscope Image Processing. 2nd edition. Academic Press. 2023, Pages 75-117, ISBN 9780128210499, https://doi.org/10.1016/B978-0-12-821049-9.00012-5
J. MacQueen, "Some Methods for Classification and Analysis of Multivariate Observations," Proceedings of the Fifth Berkeley Symposium on Mathematical Statistics and Probability, 1967, pp. 281-297.
I. Nurcahyati, T. H. Saragih, A. Farmadi, D. Kartini, and M. Muliadi, “Classification of Lung Disease in X-Ray Images Using Gray Level Co-Occurrence Matrix Method and Convolutional Neural Network”, j.electron.electromedical.eng.med.inform, vol. 6, no. 4, pp. 332-342, Aug. 2024.
H. Rezatofighi, et al., "Generalized Intersection Over Union: A Metric and a Loss for Bounding Box Regression," in 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 2019 pp. 658-666. doi: 10.1109/CVPR.2019.00075.
M. N. Saad, Z. Muda, N. S. Ashaari and H. A. Hamid, "Image segmentation for lung region in chest X-ray images using edge detection and morphology," 2014 IEEE International Conference on Control System, Computing and Engineering (ICCSCE 2014), Penang, Malaysia, 2014, pp. 46-51, doi: 10.1109/ICCSCE.2014.7072687.
P. Tiwari and S. Phulre, "Lung Image Segmentation and Compression Using Deep Learning," 2024 International Conference on Advances in Computing Research on Science Engineering and Technology (ACROSET), Indore, India, 2024, pp. 1-5, doi: 10.1109/ACROSET62108.2024.10743495.
Y. Cheng and B. Li, "Image Segmentation Technology and Its Application in Digital Image Processing," 2021 IEEE Asia-Pacific Conference on Image Processing, Electronics and Computers (IPEC), Dalian, China, 2021, pp. 1174-1177, doi: 10.1109/IPEC51340.2021.9421206.
Copyright (c) 2025 Ima Kurniastuti, Teguh Herlambang, Tri Deviasari Wulan, Dike Bayu Magfira, Nur Shabrina Meutia, Hendik Eko Saputro, Sabrina Ifahdini Soraya

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution-ShareAlikel 4.0 International (CC BY-SA 4.0) that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).