DominantColor
DominantColor copied to clipboard
Finding dominant colors of an image using k-means clustering
Accounting to http://www.easyrgb.com/en/math.php#text15, d65 tristimulus x is 95.047, but in the code the num is 5.047, is it right?
Is there a way to know which pixel or area in the image corresponding to the dominant colors?
First of all, Thank you for your nice work! Awesome. But in general case, library users finally needs only 1~2 color groups like primary, secondary or background(outbound) colors. Currently the...
- [ ] K-means - [ ] RGB LAB - [ ] CIE 2000 - [ ] Complete tests with reference images
Suggestion: https://twitter.com/alanjrogers/status/546815607291650050
[k-means++](http://en.wikipedia.org/wiki/K-means%2B%2B) might be better than choosing all of the centroids randomly.
There are a number of different methods listed [here](http://en.wikipedia.org/wiki/Determining_the_number_of_clusters_in_a_data_set)
Two build fixes for Xcode 14 beta. * [macOS] The Xcode14 beta build(s) fail as it seems that in the latest SDKs importing AppKit is no longer enough to get...