Struct deltae::DeltaE [−][src]
pub struct DeltaE { /* fields omitted */ }Expand description
The measured difference between two colors
There are many different methods of calculating color difference. Different methods have a
specific purpose, mainly in determining the level of tolerance for describing the difference
between two colors. Regardless of the DEMethod used, DeltaE is always calculated based on the
LabValues of the two colors.
Implementations
Recalculate DeltaE with another DEMethod
use deltae::{Delta, DeltaE, LabValue, DEMethod};
let lab0 = LabValue::new(89.73, 1.88, -6.96).unwrap();
let lab1 = LabValue::new(95.08, -0.17, -10.81).unwrap();
let de2000 = lab0.delta(lab1, DEMethod::DE2000);
let de1976 = de2000.with_method(DEMethod::DE1976);
assert_eq!(de1976, 6.902716);Return a reference to the DeltaE method used in the calculation
Return a reference to the reference LabValue used in the calculation. A reference color
is the base color to which the sample color is being compared.
Trait Implementations
One should be careful when ordering DeltaE. A DE2000:1.0 value is not
necessarily the same amount of color difference as a amount of color
difference DE1976:1.0 value.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for DeltaE
impl UnwindSafe for DeltaE
Blanket Implementations
Mutably borrows from an owned value. Read more