K-Means Clustering Algorithm
Rather than counting every pixel's exact colour, k-means groups pixels into perceptual clusters and returns each cluster's centroid. This surfaces meaningful colour relationships — accent oranges hidden among millions of background grey pixels — that a simple frequency count would bury under monotone backgrounds.