[][src]Trait kmeans_colors::MapColor

pub trait MapColor: Sized {
    fn map_indices_to_centroids(centroids: &[Self], indices: &[u8]) -> Vec<Self>;
}

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.

Loading content...

Implementations on Foreign Types

impl<Wp> MapColor for Lab<Wp> where
    Wp: WhitePoint
[src]

impl<Wp> MapColor for Laba<Wp> where
    Wp: WhitePoint
[src]

impl<C> MapColor for Srgb<C> where
    C: Component
[src]

impl<C> MapColor for Srgba<C> where
    C: Component
[src]

Loading content...

Implementors

Loading content...