kmeans-colors
k-means clustering library and binary to find dominant colors in images (by okaneco)
color-thief-rs
Grabs the dominant color or a representative color palette from an image. (by RazrFalcon)
kmeans-colors | color-thief-rs | |
---|---|---|
1 | 1 | |
115 | 63 | |
- | - | |
4.8 | 1.4 | |
9 months ago | 12 months ago | |
Rust | Rust | |
Apache License 2.0 | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
kmeans-colors
Posts with mentions or reviews of kmeans-colors.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-22.
-
How do I create/replicate this dominant colors function?
There is a binary in kmeans_colors. Have a look at how to author uses their library to sort the dominant colors.
color-thief-rs
Posts with mentions or reviews of color-thief-rs.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-22.
-
How do I create/replicate this dominant colors function?
I want to port this code to rust so 1. initially I tried color-thief-rs although the output was sometimes wrong (i.e. clearly red image outputting grey color) and it seemingly has no nice way to edit the kmeans parameters to allow me to fix it. 2. I then tried kmeans-colors but I am struggling to sort the colors in order of dominance.
What are some alternatives?
When comparing kmeans-colors and color-thief-rs you can also consider the following projects:
rscolorq - Spatial color quantization in Rust
image - Encoding and decoding images in Rust
menyoki - Screen{shot,cast} and perform ImageOps on the command line 🌱 🏞️
lust - A fast, auto-optimizing image server designed for high throughput and caching; Now that is hot.
photon - ⚡ Rust/WebAssembly image processing library