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

pub struct NeuQuant { /* fields omitted */ }

Neural network color quantizer

Methods

impl NeuQuant
[src]

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

Initializes the neural 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.

Auto Trait Implementations

impl Send for NeuQuant

impl Sync for NeuQuant

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Important traits for &'a mut R

Immutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Important traits for &'a mut R

Mutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> SetParameter for T
[src]

Sets value as a parameter of self.