Load an image to analyze and select the number of clusters. The script will then create analyze the image by grouping each pixel into a representative cluster and report back the percentage of the image that was assigned to each cluster.

Select image:

Number of clusters (2 ≤ n ≤ 20):

n =

Select colors to match for clusters. The first color chosen will be the used as a reference. The ratio of the number of pixels in each color to the number in the first color will be automatically computed.