Trait kmeans_colors::MapColor
source · [−]pub trait MapColor: Sized {
fn map_indices_to_centroids(centroids: &[Self], indices: &[u8]) -> Vec<Self>;
}
Expand description
A trait for mapping colors to their corresponding centroids.
pub trait MapColor: Sized {
fn map_indices_to_centroids(centroids: &[Self], indices: &[u8]) -> Vec<Self>;
}
A trait for mapping colors to their corresponding centroids.