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

palette picker does not handle narrow color-range images well #7

Open
DTrejo opened this issue Mar 17, 2013 · 1 comment
Open

palette picker does not handle narrow color-range images well #7

DTrejo opened this issue Mar 17, 2013 · 1 comment

Comments

@DTrejo
Copy link
Owner

DTrejo commented Mar 17, 2013

possible fix:

  • iterate over image once to find the min-Y and max-Y, then divide that space into buckets.
  • hack: re-run the algorithm with more and more buckets until you've got as many colors as you want. binary search lol

example:

image

@brycebaril
Copy link

It also doesn't seem to handle wide ranges well. E.g. I put a photo of someone wearing a bright yellow shirt with a tree behind them, and I get black and five shades of green from the tree. No yellow, no skin tones, no hair color, etc.

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

2 participants