-
Notifications
You must be signed in to change notification settings - Fork 9
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
Great implementation questions #50
Comments
Thanks. I'll try to answer.
The convergence factor is a distance metric for how much the centroids have changed from one iteration to the next. Below a threshold, the centroids have moved so little between iterations that it's not visible to us, so it's an optimization to not run more iterations than necessary. A higher factor will have lower quality results because the centroids haven't stabilized yet, but if the factor is too low it may never converge due to the instability of centroids juggling points back and forth between one another. The convergence factor and maximum number of iterations exist to make sure the algorithm is guaranteed to converge or stop. Through experimenting, I found The documentation could be made more clear about this. There's a bit about it in the bottom of this section.
I'm not sure what you mean by this. It's supported in the command line application by passing the
There are a few ways you can do this, I'm not sure which specifically you mean. You can try downloading from the releases page https://github.com/okaneco/kmeans-colors/releases. If you If you're compiling with |
Thank you. I believe you answered my questions. It sounds to me like your stating For the sRGB portion, --rgb represents sRGB and not the rgb profile. In imagemagick and photoshop, RGB and sRGB are two different profiles. One more: Can you think of how I could adjust the fuzz value or color average when reducing colors? I get 3 colors typically when two colors are next to each other due to anti-aliasing. For example Yellow/Black next to each other often becomes Yellow, Red and Black colors especially if red is used elsewhere? |
@okaneco This helps a ton for trying to figure out how to use this as a library. Is it possible you might be able to integrate some of this into the documentation? |
First, this is a great Implementation. I haven't seen any other implementations of the Hamerly method.
Couple questions:
Thank you
The text was updated successfully, but these errors were encountered: