Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Well, if you need a specific number of colors, you should probably use kmeans instead. You treat each pixel as a data point, with 32 clusters. Then each pixel is turned into the cluster center it is closest to.