EuclideanRgbQuantWOAlpha | Image Quantization Library (image-q)

Euclidean color distance (RgbQuant modification w/o Alpha)

### Hierarchy

- Euclidean
  - EuclideanRgbQuantWOAlpha

### Implements

- IDistanceCalculator
- IDistanceCalculator

## Index

### Constructors

- constructor

### Properties

- _Pa
- _Pb
- _Pg
- _Pr
- _maxEuclideanDistance

### Methods

- _setDefaults
- calculateNormalized
- calculateRaw
- setWhitePoint

## Constructors

### constructor

- new EuclideanRgbQuantWOAlpha(): EuclideanRgbQuantWOAlpha

- Inherited from Euclidean.constructor

  - Defined in distance/euclidean.ts:19

  #### Returns EuclideanRgbQuantWOAlpha

## Properties

### Protected _Pa

_Pa: number

Inherited from Euclidean._Pa

- Defined in distance/euclidean.ts:17

### Protected _Pb

_Pb: number

Inherited from Euclidean._Pb

- Defined in distance/euclidean.ts:16

### Protected _Pg

_Pg: number

Inherited from Euclidean._Pg

- Defined in distance/euclidean.ts:15

### Protected _Pr

_Pr: number

Inherited from Euclidean._Pr

- Defined in distance/euclidean.ts:14

### Protected _maxEuclideanDistance

_maxEuclideanDistance: number

Inherited from Euclidean._maxEuclideanDistance

- Defined in distance/euclidean.ts:19

## Methods

### Protected _setDefaults

- _setDefaults(): void

- Overwrites Euclidean._setDefaults

  - Defined in distance/euclideanRgbQuant.ts:14

  #### Returns void

### calculateNormalized

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

- Inherited from Euclidean.calculateNormalized

  - Defined in distance/euclidean.ts:40

  #### 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

- Inherited from Euclidean.calculateRaw

  - Defined in distance/euclidean.ts:35

  #### 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

- Inherited from Euclidean.setWhitePoint

  - Defined in distance/euclidean.ts:31

  To simulate original RgbQuant distance use `r=255,g=255,b=255,a=0`

  #### Parameters

  - ##### r: number

  - ##### g: number

  - ##### b: number

  - ##### a: number

  #### Returns void

Generated using TypeDoc