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

Bias towards the color black. #15

Open
tunaflsh opened this issue Nov 15, 2023 · 0 comments
Open

Bias towards the color black. #15

tunaflsh opened this issue Nov 15, 2023 · 0 comments

Comments

@tunaflsh
Copy link

I'm trying to quantize this image. But it is biased towards darker colors, which are less appealing the the brighter colors. And it would make more sense to have more brighter colors in the limited palette. Do you have any idea if I'm setting this incorrectly?
image

  1. Run
rscolorq -i image.png -o image-32-lab.png --op image-32pal-lab.png -n 32 --lab -p --auto -s 0
  1. Results
13191b,000b08,000000,70493f,000000,3d2c20,b1a9c6,434348,2d1c23,1c1011,957384,32292b,1e2d33,231e1b,282924,282428,ae5670,67475c,33302e,44323c,485974,9c3041,fdf0ea,000505,0f0409,3e1920,528dd3,000100,656256,303e7e,f396a1,1c2141

image-32pal-lab
image-32-lab

And it's way worse without the --lab color space

  1. Run
rscolorq -i image.png -o image-32.png --op image-32pal.png -n 32 -p --auto -s 0
  1. Results
000000,000000,000000,fce8e5,000000,000000,313a76,dc6676,000000,000000,000000,000000,000000,000000,422023,487fc8,000000,000000,000000,90526d,000000,5b5551,000000,37525f,000000,000000,000000,1a1f3c,000000,000000,000000,8f2c38

image-32pal
image-32

Isn't it supposed to generate 32 distinct colors? Instead the color black is repeated multiple times.

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