DominantColor icon indicating copy to clipboard operation
DominantColor copied to clipboard

Sorting more and grouping each results by hue representativeness or similarity is needed.

Open metasmile opened this issue 9 years ago • 0 comments

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 result seems that in each 2 items are pretty similar. Also in this example https://github.com/indragiek/DominantColor/raw/master/mac.png, I think first color is not dominant color, it may be secondary or background with the last color.

Currently you did perform it by "size" like following.

// Sort the clusters by size in descending order so that the
// most dominant colors come first.
 clusters.sortInPlace { $0.size > $1.size }

Are you have some plans to improve? Or, please let me know some hints or important parts of your lib.

Thanks.

metasmile avatar Aug 17 '16 03:08 metasmile