Struct image::math::nq::NeuQuant [] [src]

pub struct NeuQuant { /* fields omitted */ }

Neural network color quantizer

Methods

impl NeuQuant
[src]

Creates a new neuronal network and trains it with the supplied data

Initializes the neuronal network and trains it with the supplied data

Maps the pixel in-place to the best-matching color in the color map

Finds the best-matching index in the color map for pixel

Trait Implementations

impl ColorMap for NeuQuant
[src]

The color type on which the map operates on

Returns the index of the closed match of color in the color map. Read more

Maps color to the closest color in the color map.