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.

Required methods

Map pixel indices to each centroid for output buffer.

Implementations on Foreign Types

Implementors