pub struct KMeansQuantizer {
pub max_iterations: usize,
pub sample_rate: usize,
pub dither: bool,
}Expand description
A K-Means++ based quantizer that operates in CIELAB space.
Fields§
§max_iterations: usizeMaximum number of iterations for the clustering algorithm.
sample_rate: usizePixel sampling rate (e.g. 10 for 10% sampling)
dither: boolWhether to use dithering during index generation.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KMeansQuantizer
impl RefUnwindSafe for KMeansQuantizer
impl Send for KMeansQuantizer
impl Sync for KMeansQuantizer
impl Unpin for KMeansQuantizer
impl UnwindSafe for KMeansQuantizer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more