Characterization of Changes in Large Red Chili Peppers Using RGB Images with the Gray Level Co-occurrence Matrix (GLCM) and K-Means Clustering Methods

Irsani Taba Leki (1), Elvianto Dwi Hartono (2)
(1) Universitas 17 Agustus 1945 Surabaya, Indonesia,
(2) Universitas 17 Agustus 1945 Surabaya, Indonesia

Abstract

Large red chili pepper (Capsicum annuum L.) deteriorates rapidly during storage, as indicated by changes in color and surface texture. This study aimed to characterize these changes objectively using RGB images, the Gray Level Co-occurrence Matrix (GLCM), and K-Means Clustering. A total of 80 images were acquired over 20 days at two acquisition times and under two treatment conditions using a mini studio with fixed camera position and illumination. Images were resized to 512 × 512 pixels, separated into RGB channels, converted to grayscale, and processed using GLCM at 0°, 45°, 90°, and 135°. Seven features were normalized using z-score and grouped into three clusters. The mean Red intensity decreased from 41.33 to 24.43 or 40.89%, while Green and Blue decreased by 28.58% and 29.36%, respectively. Contrast increased by 111.32%, correlation decreased by 2.82%, energy increased by 24.87%, and homogeneity increased by 5.53%. K-Means assigned 32 observations to Cluster 1, 17 to Cluster 2, and 31 to Cluster 3, interpreted as beginning to change, relatively good, and wilting or damaged conditions. The findings show that combined color and texture features represent storage-related changes; however, cluster interpretation still requires validation using physical quality measurements.

Full text article

Generated from XML file

Authors

Irsani Taba Leki
tabalekiirsani@gmail.com (Primary Contact)
Elvianto Dwi Hartono
Taba Leki, I., & Hartono, E. D. (2026). Characterization of Changes in Large Red Chili Peppers Using RGB Images with the Gray Level Co-occurrence Matrix (GLCM) and K-Means Clustering Methods. Computing Insight: Journal of Computer Science, 8(1), 45–51. https://doi.org/10.30651/comp_insight.v8i1.33272

Article Details

Similar Articles

1 2 > >> 

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

No Related Submission Found