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.

Object Safety§

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,