IDistanceCalculator | Image Quantization Library (image-q)

### Hierarchy

- IDistanceCalculator

### Implemented by

- DistanceCIE94
- DistanceCIEDE2000
- DistanceCIEDE2000_Original
- DistanceCMETRIC
- DistanceEuclidean
- DistanceEuclideanRgbQuantWOAlpha
- DistanceEuclideanRgbQuantWOAlpha
- DistanceEuclideanWuQuant
- DistanceEuclideanWuQuant
- DistanceManhattan
- DistanceManhattanNeuQuant
- DistanceManhattanNeuQuant
- DistancePNGQUANT

## Index

### Methods

- calculateNormalized
- calculateRaw
- setWhitePoint

## Methods

### calculateNormalized

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

- - Defined in distance/common.ts:12

  #### 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/common.ts:11

  #### 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/common.ts:10

  #### Parameters

  - ##### r: number

  - ##### g: number

  - ##### b: number

  - ##### a: number

  #### Returns void

Generated using TypeDoc