@OPEN-KAPPA/COLORS
    Preparing search index...

    Class ColorDifferenceAbstract

    Color difference computation methods.

    Index

    Methods

    • Compute the Delta-E with the CIEDE2000 version.

      Parameters

      • c1: Lab

        The first color.

      • c2: Lab

        The second color.

      Returns number

      The color difference.

    • Compute the Delta-E with the CIEDE2000 version. Please note that the comoponents must be in Lab color space.

      Parameters

      • c1: number[]

        The first color.

      • c2: number[]

        The second color.

      Returns number

      The color difference.

    • Compute the Delta-E with the CIE76 version. Please note that the components must be in an appropriate space: Lab, Oklab, Luv, JzAzBz, ICtCp. Also, they must be in the same space.

      Parameters

      • comp1: number[]

        The first color.

      • comp2: number[]

        The second color.

      Returns number

      The color difference.

    • Compute the Delta-E with the CIE94 version. Uses the 'Graphic Arts' constants by default (kL=1, K1=0.045, K2=0.015).

      Parameters

      • c1: Lab

        The first color (Lab).

      • c2: Lab

        The second color (Lab).

      • textiles: boolean = false

        If true, uses Textile constants (kL=2, K1=0.048, K2=0.014).

      Returns number

      The color difference.

    • Compute the Delta-E with the CIE94 version from components.

      Parameters

      • c1: number[]

        L, a, b components.

      • c2: number[]

        L, a, b components.

      • textiles: boolean = false

        If true, uses Textile constants.

      Returns number

    • Compute the CMC l:c (1984) Color Difference. Standard for textile industry.

      Parameters

      • c1: Lab

        The first color (Reference/Standard).

      • c2: Lab

        The second color (Sample/Batch).

      • l: number = 2

        Lightness weight (default 2 for textiles, 1 for perceptibility).

      • c: number = 1

        Chroma weight (default 1).

      Returns number

      The difference.

    • Compute the CMC l:c (1984) Color Difference from components.

      Parameters

      • c1: number[]

        Reference Lab components.

      • c2: number[]

        Sample Lab components.

      • l: number

        Lightness weight.

      • c: number

        Chroma weight.

      Returns number

    • Compute the ITP color difference (ITU-R BT.2124). A value of 1.0 menas a Just Noticeable Difference (JND).

      Parameters

      • c1: ICtCp

        The first color.

      • c2: ICtCp

        The second color.

      Returns number

      The difference.

    • Compute the ITP color difference (ITU-R BT.2124). A value of 1.0 menas a Just Noticeable Difference (JND). Both components must be in ICtCp color space.

      Parameters

      • c1: number[]

        The first color.

      • c2: number[]

        The second color.

      Returns number

      The difference.