pub struct NeuQuant { /* private fields */ }
Expand description
Neural network color quantizer
Implementations
sourceimpl NeuQuant
impl NeuQuant
sourcepub fn new(samplefac: i32, colors: usize, pixels: &[u8]) -> Self
pub fn new(samplefac: i32, colors: usize, pixels: &[u8]) -> Self
Creates a new neural network and trains it with the supplied data
sourcepub fn init(&mut self, pixels: &[u8])
pub fn init(&mut self, pixels: &[u8])
Initializes the neural network and trains it with the supplied data
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NeuQuant
impl Send for NeuQuant
impl Sync for NeuQuant
impl Unpin for NeuQuant
impl UnwindSafe for NeuQuant
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more