pub trait Ciede2000 {
type Scalar;
// Required method
fn difference(self, other: Self) -> Self::Scalar;
}
Expand description
Calculate the CIEDE2000 ΔE* (Delta E) color difference between two colors.
CIEDE2000 is a formula by the CIE that calculates a distance metric, ΔE*
(also known as Delta E), as an estimate of perceived color distance or
difference. CIEDE2000 is an improvement over ΔE (see DeltaE
) for CIE
L*a*b* and CIE L*C*h° (see Lab
and Lch
).
There is a “just noticeable difference” between two colors when the ΔE* is roughly greater than 1. Thus, the color difference is more suited for calculating small distances between colors as opposed to large differences.
Required Associated Types§
Required Methods§
sourcefn difference(self, other: Self) -> Self::Scalar
fn difference(self, other: Self) -> Self::Scalar
Calculate the CIEDE2000 ΔE* (Delta E) color difference between self
and other
.
Object Safety§
This trait is not object safe.