[−][src]Trait kmeans_colors::MapColor
A trait for mapping colors to their corresponding centroids.
Required methods
fn map_indices_to_centroids(centroids: &[Self], indices: &[u8]) -> Vec<Self>
Map pixel indices to each centroid for output buffer.
Implementations on Foreign Types
impl<Wp> MapColor for Lab<Wp> where
Wp: WhitePoint,
[src]
Wp: WhitePoint,
impl<Wp> MapColor for Laba<Wp> where
Wp: WhitePoint,
[src]
Wp: WhitePoint,
impl<C> MapColor for Srgb<C> where
C: Component,
[src]
C: Component,
impl<C> MapColor for Srgba<C> where
C: Component,
[src]
Loading content...C: Component,