Previous Thread The only general on Sup Forums that actually programs. :^)
This week: Image Quantization
>Given a source image and a number, create and output to user a palette with this many colors in it. The requirement is if you would use that palette to draw the picture anew, the result should look good. I don't think I can pose the problem in a more strict way than that.
>As an example here a palette created by my program, with 5 colors.
>A more difficult version of the problem would be to have the program automatically detect the needed number of colors.
You're encouraged to find ways to make the problem easier or more difficult depending on your skill level.
Post results and share bits of code.
>Previous Challenges (Will throw this in a pastebin or github repo when I get around to it):
Week 1 (Draw a picture using random shapes)
Week 2 (Conway's Game of Life)
>Other places to find challenges / things to do:
rosettacode.org
projecteuler.net