#[repr(C)]pub enum DISTANCE_TYPE {
DISTANCE_CIE76 = 0,
DISTANCE_CIE94_GRAPHIC_ARTS = 1,
DISTANCE_CIE94_TEXTILES = 2,
DISTANCE_CIE2000 = 3,
DISTANCE_CMC_1TO1 = 4,
DISTANCE_CMC_2TO1 = 5,
DISTANCE_RGB = 6,
DISTANCE_RGBL = 7,
}
Expand description
Enum of possible functions to calculate the distance between colors.
See https://en.wikipedia.org/wiki/Color_difference for details
Variants§
DISTANCE_CIE76 = 0
The 1976 formula is the first formula that related a measured color difference to a known set of CIELAB coordinates.
DISTANCE_CIE94_GRAPHIC_ARTS = 1
The 1976 definition was extended to address perceptual non-uniformities.
DISTANCE_CIE94_TEXTILES = 2
DISTANCE_CIE2000 = 3
DISTANCE_CMC_1TO1 = 4
In 1984, the Colour Measurement Committee of the Society of Dyers and Colourists defined a difference measure, also based on the LCh color model.
DISTANCE_CMC_2TO1 = 5
DISTANCE_RGB = 6
Euclidean distance of rgb color space
DISTANCE_RGBL = 7
Euclidean distance of rgbl color space
Trait Implementations§
Source§impl Clone for DISTANCE_TYPE
impl Clone for DISTANCE_TYPE
Source§fn clone(&self) -> DISTANCE_TYPE
fn clone(&self) -> DISTANCE_TYPE
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DISTANCE_TYPE
impl Debug for DISTANCE_TYPE
Source§impl From<DISTANCE_TYPE> for i32
impl From<DISTANCE_TYPE> for i32
Source§fn from(v: DISTANCE_TYPE) -> Self
fn from(v: DISTANCE_TYPE) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DISTANCE_TYPE
impl PartialEq for DISTANCE_TYPE
Source§impl TryFrom<i32> for DISTANCE_TYPE
impl TryFrom<i32> for DISTANCE_TYPE
impl Copy for DISTANCE_TYPE
impl Eq for DISTANCE_TYPE
impl StructuralPartialEq for DISTANCE_TYPE
Auto Trait Implementations§
impl Freeze for DISTANCE_TYPE
impl RefUnwindSafe for DISTANCE_TYPE
impl Send for DISTANCE_TYPE
impl Sync for DISTANCE_TYPE
impl Unpin for DISTANCE_TYPE
impl UnwindSafe for DISTANCE_TYPE
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more