DistanceCIEDE2000 | Image Quantization Library (image-q)

CIEDE2000 algorithm (optimized)

### Hierarchy

- DistanceCIEDE2000

### Implements

- IDistanceCalculator

## Index

### Constructors

- constructor

### Properties

- _whitePoint
- _deg180InRad
- _deg30InRad
- _deg360InRad
- _deg63InRad
- _deg6InRad
- _kC
- _kH
- _kL
- _pow25to7

### Methods

- _a_hp_f
- _dhp_f
- _hp_f
- calculateNormalized
- calculateRaw
- calculateRawInLab
- setWhitePoint

## Constructors

### constructor

- new DistanceCIEDE2000(): DistanceCIEDE2000

- - Defined in distance/ciede2000.ts:25

  #### Returns DistanceCIEDE2000

## Properties

### Private _whitePoint

_whitePoint: object

- Defined in distance/ciede2000.ts:25

#### Type declaration

- ##### a: number

- ##### b: number

- ##### g: number

- ##### r: number

### Static Private _deg180InRad

_deg180InRad: number

- Defined in distance/ciede2000.ts:20

### Static Private _deg30InRad

_deg30InRad: number

- Defined in distance/ciede2000.ts:21

### Static Private _deg360InRad

_deg360InRad: number

- Defined in distance/ciede2000.ts:19

### Static Private _deg63InRad

_deg63InRad: number

- Defined in distance/ciede2000.ts:23

### Static Private _deg6InRad

_deg6InRad: number

- Defined in distance/ciede2000.ts:22

### Static Private _kC

_kC: number

- Defined in distance/ciede2000.ts:16

### Static Private _kH

_kH: number

- Defined in distance/ciede2000.ts:17

### Static Private _kL

_kL: number

- Defined in distance/ciede2000.ts:15

### Static Private _pow25to7

_pow25to7: number

- Defined in distance/ciede2000.ts:18

## Methods

### Private _a_hp_f

- _a_hp_f(C1: number, C2: number, h1p: number, h2p: number): number

- - Defined in distance/ciede2000.ts:131

  #### Parameters

  - ##### C1: number

  - ##### C2: number

  - ##### h1p: number

  - ##### h2p: number

  #### Returns number

### Private _dhp_f

- _dhp_f(C1: number, C2: number, h1p: number, h2p: number): number

- - Defined in distance/ciede2000.ts:149

  #### Parameters

  - ##### C1: number

  - ##### C2: number

  - ##### h1p: number

  - ##### h2p: number

  #### Returns number

### Private _hp_f

- _hp_f(b: number, aPrime: number): number

- - Defined in distance/ciede2000.ts:118

  #### Parameters

  - ##### b: number

  - ##### aPrime: number

  #### Returns number

### calculateNormalized

- calculateNormalized(colorA: Point, colorB: Point): number

- - Defined in distance/ciede2000.ts:114

  #### Parameters

  - ##### colorA: Point

  - ##### colorB: Point

  #### Returns number

### calculateRaw

- calculateRaw(r1: number, g1: number, b1: number, a1: number, r2: number, g2: number, b2: number, a2: number): number

- - Defined in distance/ciede2000.ts:35

  #### Parameters

  - ##### r1: number

  - ##### g1: number

  - ##### b1: number

  - ##### a1: number

  - ##### r2: number

  - ##### g2: number

  - ##### b2: number

  - ##### a2: number

  #### Returns number

### calculateRawInLab

- calculateRawInLab(Lab1: object, Lab2: object): number

- - Defined in distance/ciede2000.ts:52
  description

    minDistance between any color (CIEDE2000 low limit) = 0.00021155740497634713 (Chrome 46, JavaScript) !!!!!! max (RT (dCp / (SC DistanceCIEDE2000._kC)) (dHp / (SH DistanceCIEDE2000._kH))) 0.0000019135101965161994 max (abs(dE (correct RT) - dE (RT = 0) ) ) is always less than minDistance (0.0000019135101965161994)

    So, we can remove RT from equation.

  #### Parameters

  - ##### Lab1: object

    - ##### L: number

    - ##### a: number

    - ##### b: number

  - ##### Lab2: object

    - ##### L: number

    - ##### a: number

    - ##### b: number

  #### Returns number

### setWhitePoint

- setWhitePoint(r: number, g: number, b: number, a: number): void

- - Defined in distance/ciede2000.ts:31

  #### Parameters

  - ##### r: number

  - ##### g: number

  - ##### b: number

  - ##### a: number

  #### Returns void

Generated using TypeDoc