Function color_reduction::reduce_colors [−][src]
pub fn reduce_colors<T: GenericImage>(image: T, colors: &[Rgb<u8>]) -> RgbImage where
<T as GenericImageView>::Pixel: Pixel<Subpixel = u8>,
Expand description
Reduces the colors of an image to a specified set of [colors]. The similarity algorithm matches human perception so visibly similar color should correlate.