Skip to main content

Crate dominant_color_rs

Crate dominant_color_rs 

Source

Structs§

KMeansResult
Result of a K-Means clustering operation.
Settings
Settings for dominant color extraction.

Enums§

ColorSpace
Color space used for K-Means clustering.
KMeansInit
Initialization method for K-Means.

Functions§

dominant_color
Calculates the dominant color of an image.
dominant_colors
Calculates the dominant colors of an image.
eucl_distance
Calculates the Euclidean distance between two points.
eucl_distance_squared
Calculates the squared Euclidean distance between two points.
kmeans
Performs K-Means clustering on the provided data.
saturation
Calculates the saturation (chroma) of an RGB color.
silhouette_score
Calculates the silhouette score for a clustering result.