Demo:
https://dominant-color-demo.marekm4.com/
Blog post:
https://medium.com/@marek.michalik/c-vs-rust-vs-go-performance-analysis-945ab749056c
Usage: ```rust use std::path;
fn main() { let image = image::open(path::Path::new("docs/Fotolia45549559320480.jpg")).unwrap(); let colors = dominantcolor::getcolors(image.torgb8().intoraw().asslice(), false); println!("colors: {:?}", colors); } ```
Example image:
Extracted colors: