CIE94 | Image Quantization Library (image-q)

Computes CIE94 distance between 2 colors in LAB space.

p1 = [l1, a1, b1] p2 = [l2, a2, b2] Returns distance:float

Usage example: var d = CIE94_dist([94.0, -0.1, -0.55], [77.0, 0.5, 0.45])

Iulius Curt, april 2013

### Hierarchy

- CIE94

### Implements

- IDistanceCalculator

## Index

### Constructors

- constructor

### Properties

- _maxCIE94Distance
- _whitePoint
- _K1
- _K2
- _Kl

### Methods

- calculateNormalized
- calculateRaw
- setWhitePoint

## Constructors

### constructor

- new CIE94(): CIE94

- - Defined in distance/cie94.ts:28

  #### Returns CIE94

## Properties

### Private _maxCIE94Distance

_maxCIE94Distance: number

- Defined in distance/cie94.ts:28

### Private _whitePoint

_whitePoint: object

- Defined in distance/cie94.ts:27

#### Type declaration

- ##### a: number

- ##### b: number

- ##### g: number

- ##### r: number

### Static Private _K1

_K1: number

- Defined in distance/cie94.ts:24

### Static Private _K2

_K2: number

- Defined in distance/cie94.ts:25

### Static Private _Kl

_Kl: number

- Defined in distance/cie94.ts:23

## Methods

### calculateNormalized

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

- - Defined in distance/cie94.ts:58

  #### 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/cie94.ts:40

  #### Parameters

  - ##### r1: number

  - ##### g1: number

  - ##### b1: number

  - ##### a1: number

  - ##### r2: number

  - ##### g2: number

  - ##### b2: number

  - ##### a2: number

  #### Returns number

### setWhitePoint

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

- - Defined in distance/cie94.ts:35

  #### Parameters

  - ##### r: number

  - ##### g: number

  - ##### b: number

  - ##### a: number

  #### Returns void

Generated using TypeDoc