Struct exoquant::optimizer::None
[−]
[src]
pub struct None;
A No-op Optimizer implementation.
Trait Implementations
impl Optimizer for None
[src]
fn step(&self, colors: Vec<Colorf>, _: &[ColorCount]) -> Vec<Colorf>
Do one K-Means optimization step and return colors that better represent the histogram. Read more
fn is_noop(&self) -> bool
Returns whether this Optimizer is a No-op implementation. Read more
fn optimize_palette(&self, colorspace: &ColorSpace, palette: &[Color], histogram: &Histogram, num_iterations: usize) -> Vec<Color>
Optimize a given palette with a number of K-Means iteration. Read more