Merge pull request #75 from lerouxrgd/feature/kmeans

Add kmeans
This commit is contained in:
Nathan Fiedler
2020-12-20 18:06:32 -08:00
committed by GitHub

View File

@ -849,6 +849,9 @@ impl MagickWand {
/// Discard all but one of any pixel color. /// Discard all but one of any pixel color.
MagickUniqueImageColors => unique_image_colors() MagickUniqueImageColors => unique_image_colors()
/// Applies k-means color reduction to the image.
MagickKmeansImage => kmeans(number_colors: size_t, max_iterations: size_t, tolerance: f64)
); );
get!(get_image_colors, MagickGetImageColors, size_t); get!(get_image_colors, MagickGetImageColors, size_t);