pub struct QuantizerWu { /* private fields */ }Implementations§
Source§impl QuantizerWu
impl QuantizerWu
pub fn get_index<T: Into<usize>>(r: T, g: T, b: T) -> usize
pub fn construct_histogram( &mut self, pixels: IndexMap<Argb, u32, BuildHasherDefault<AHasher>>, )
pub fn compute_moments(&mut self)
pub fn create_boxes(&mut self, max_color_count: usize) -> CreateBoxesResult
pub fn create_result( &self, color_count: usize, ) -> IndexMap<Argb, u32, BuildHasherDefault<AHasher>>
pub fn variance(&self, cube: &Cube) -> f64
pub fn cut(&mut self, next: usize, i: usize) -> bool
pub fn maximize( &self, cube: &Cube, direction: &Direction, first: i32, last: i32, whole_r: i64, whole_g: i64, whole_b: i64, whole_w: i64, ) -> MaximizeResult
pub fn volume(cube: &Cube, moment: &[i64]) -> i64
pub fn bottom(cube: &Cube, direction: &Direction, moment: &[i64]) -> i64
pub fn top( cube: &Cube, direction: &Direction, position: i32, moment: &[i64], ) -> i64
Trait Implementations§
Source§impl Quantizer for QuantizerWu
impl Quantizer for QuantizerWu
Auto Trait Implementations§
impl Freeze for QuantizerWu
impl RefUnwindSafe for QuantizerWu
impl Send for QuantizerWu
impl Sync for QuantizerWu
impl Unpin for QuantizerWu
impl UnsafeUnpin for QuantizerWu
impl UnwindSafe for QuantizerWu
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