palette::color_difference

Trait ImprovedCiede2000

Source
pub trait ImprovedCiede2000: Ciede2000 {
    // Required method
    fn improved_difference(self, other: Self) -> Self::Scalar;
}
Expand description

Calculate the CIEDE2000 ΔE’ (improved IEDE2000 ΔE*) color difference.

The “improved CIEDE2000” uses the output of Ciede2000 and enhances it according to Power functions improving the performance of color-difference formulas by Huang et al.

Required Methods§

Source

fn improved_difference(self, other: Self) -> Self::Scalar

Calculate the CIEDE2000 ΔE’ (improved IEDE2000 ΔE*) color difference between self and other.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<C> ImprovedCiede2000 for C
where C: Ciede2000, C::Scalar: Real + Mul<C::Scalar, Output = C::Scalar> + Powf,