[][src]Enum opencv::mcc::DISTANCE_TYPE

#[repr(C)]pub enum DISTANCE_TYPE {
    DISTANCE_CIE76,
    DISTANCE_CIE94_GRAPHIC_ARTS,
    DISTANCE_CIE94_TEXTILES,
    DISTANCE_CIE2000,
    DISTANCE_CMC_1TO1,
    DISTANCE_CMC_2TO1,
    DISTANCE_RGB,
    DISTANCE_RGBL,
}

Enum of possible functions to calculate the distance between colors.

See https://en.wikipedia.org/wiki/Color_difference for details

Variants

DISTANCE_CIE76

The 1976 formula is the first formula that related a measured color difference to a known set of CIELAB coordinates.

DISTANCE_CIE94_GRAPHIC_ARTS

The 1976 definition was extended to address perceptual non-uniformities.

DISTANCE_CIE94_TEXTILES
DISTANCE_CIE2000
DISTANCE_CMC_1TO1

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
DISTANCE_RGB

Euclidean distance of rgb color space

DISTANCE_RGBL

Euclidean distance of rgbl color space

Trait Implementations

impl Clone for DISTANCE_TYPE[src]

impl Copy for DISTANCE_TYPE[src]

impl Debug for DISTANCE_TYPE[src]

impl PartialEq<DISTANCE_TYPE> for DISTANCE_TYPE[src]

impl StructuralPartialEq for DISTANCE_TYPE[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.