K-Means Color Clustering
مثال توضيحي مصغّر — يُظهر كيف تستخرج الألوان السائدة من الصور. مشاريعنا الحقيقية أكبر وأكثر تعقيداً.
معاينة مباشرة — تفاعلية
K-Means Color Clustering
Unsupervised ML - استخراج الألوان السائدة من الصور
Original
Quantized
5
How does K-Means work?
- Initialize: Randomly place K cluster centers in color space.
- Assign: Each pixel joins the nearest cluster center (by RGB distance).
- Update: Move each cluster center to the mean of its assigned pixels.
- Repeat: Iterate until clusters stabilize.
- Output: Compress image to K dominant colors with their percentages.