Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Savefile Image Creators: Better colour reduction algorithm #11

Open
Protofall opened this issue Mar 5, 2019 · 0 comments
Open

Savefile Image Creators: Better colour reduction algorithm #11

Protofall opened this issue Mar 5, 2019 · 0 comments

Comments

@Protofall
Copy link
Owner

Both the savefile icon creator and eyecatcher creator programs use K-means to reduce the total colour count to under 16 or 256 colours, however is almost never chooses K colours and often looks bad. Research for better algorithms. One that came to mind is this:

Keep all the code the same, except instead of calling K-means we find the 16 most common colours in our image (Colour 1 appears 36 times, colour 2 appears 33 times, etc). Then maybe we refine them so the colours blend better (Be cautious of centroids merging and we lose colours)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant