ErrorDiffusionRiemersma | Image Quantization Library (image-q)

### Hierarchy

- ErrorDiffusionRiemersma

### Implements

- IImageDitherer

## Index

### Constructors

- constructor

### Properties

- _distance
- _errorPropagation
- _errorQueueSize
- _max
- _weights

### Methods

- _createWeights
- quantize

## Constructors

### constructor

- new ErrorDiffusionRiemersma(colorDistanceCalculator: IDistanceCalculator, errorQueueSize?: number, errorPropagation?: number): ErrorDiffusionRiemersma

- - Defined in image/riemersma.ts:37

  #### Parameters

  - ##### colorDistanceCalculator: IDistanceCalculator

  - ##### Default value errorQueueSize: number = 16

  - ##### Default value errorPropagation: number = 1

  #### Returns ErrorDiffusionRiemersma

## Properties

### Private _distance

_distance: IDistanceCalculator

- Defined in image/riemersma.ts:33

### Private _errorPropagation

_errorPropagation: number

- Defined in image/riemersma.ts:36

### Private _errorQueueSize

_errorQueueSize: number

- Defined in image/riemersma.ts:35

### Private _max

_max: number

- Defined in image/riemersma.ts:37

### Private _weights

_weights: number[]

- Defined in image/riemersma.ts:34

## Methods

### Private _createWeights

- _createWeights(): void

- - Defined in image/riemersma.ts:109

  #### Returns void

### quantize

- quantize(pointBuffer: PointContainer, palette: Palette): PointContainer

- - Defined in image/riemersma.ts:47

  #### Parameters

  - ##### pointBuffer: PointContainer

  - ##### palette: Palette

  #### Returns PointContainer

Generated using TypeDoc