DistanceCMETRIC | Image Quantization Library (image-q)

TODO: Name it: http://www.compuphase.com/cmetric.htm

### Hierarchy

- DistanceCMETRIC

### Implements

- IDistanceCalculator

## Index

### Constructors

- constructor

### Properties

- _aCoefficient
- _bCoefficient
- _gCoefficient
- _maxDistance
- _rCoefficient

### Methods

- calculateNormalized
- calculateRaw
- setWhitePoint

## Constructors

### constructor

- new DistanceCMETRIC(): DistanceCMETRIC

- - Defined in distance/cmetric.ts:18

  #### Returns DistanceCMETRIC

## Properties

### Private _aCoefficient

_aCoefficient: number

- Defined in distance/cmetric.ts:17

### Private _bCoefficient

_bCoefficient: number

- Defined in distance/cmetric.ts:16

### Private _gCoefficient

_gCoefficient: number

- Defined in distance/cmetric.ts:15

### Private _maxDistance

_maxDistance: number

- Defined in distance/cmetric.ts:18

### Private _rCoefficient

_rCoefficient: number

- Defined in distance/cmetric.ts:14

## Methods

### calculateNormalized

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

- - Defined in distance/cmetric.ts:43

  #### 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/cmetric.ts:32

  #### 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/cmetric.ts:24

  #### Parameters

  - ##### r: number

  - ##### g: number

  - ##### b: number

  - ##### a: number

  #### Returns void

Generated using TypeDoc