ColorHistogram | Image Quantization Library (image-q)

### Hierarchy

- ColorHistogram

## Index

### Constructors

- constructor

### Properties

- _histogram
- _hueStats
- _initColors
- _method
- _minHueCols
- _boxPixels
- _boxSize
- _hueGroups

### Methods

- _colorStats1D
- _colorStats2D
- _iterateBox
- getImportanceSortedColorsIDXI32
- sample

## Constructors

### constructor

- new ColorHistogram(method: number, colors: number): ColorHistogram

- - Defined in palette/rgbquant/colorHistogram.ts:35

  #### Parameters

  - ##### method: number

  - ##### colors: number

  #### Returns ColorHistogram

## Properties

### Private _histogram

_histogram: object

- Defined in palette/rgbquant/colorHistogram.ts:29

#### Type declaration

- ##### [color: string]: number

### Private _hueStats

_hueStats: HueStatistics

- Defined in palette/rgbquant/colorHistogram.ts:27

### Private _initColors

_initColors: number

- Defined in palette/rgbquant/colorHistogram.ts:32

### Private _method

_method: number

- Defined in palette/rgbquant/colorHistogram.ts:24

### Private _minHueCols

_minHueCols: number

- Defined in palette/rgbquant/colorHistogram.ts:35

### Static Private _boxPixels

_boxPixels: number

- Defined in palette/rgbquant/colorHistogram.ts:20

### Static Private _boxSize

_boxSize: Array<number>

- Defined in palette/rgbquant/colorHistogram.ts:19

### Static Private _hueGroups

_hueGroups: number

- Defined in palette/rgbquant/colorHistogram.ts:21

## Methods

### Private _colorStats1D

- _colorStats1D(pointBuffer: PointContainer): void

- - Defined in palette/rgbquant/colorHistogram.ts:103

  #### Parameters

  - ##### pointBuffer: PointContainer

  #### Returns void

### Private _colorStats2D

- _colorStats2D(pointBuffer: PointContainer): void

- - Defined in palette/rgbquant/colorHistogram.ts:124

  #### Parameters

  - ##### pointBuffer: PointContainer

  #### Returns void

### Private _iterateBox

- _iterateBox(bbox: any, wid: any, fn: any): void

- - Defined in palette/rgbquant/colorHistogram.ts:165

  #### Parameters

  - ##### bbox: any

  - ##### wid: any

  - ##### fn: any

  #### Returns void

### getImportanceSortedColorsIDXI32

- getImportanceSortedColorsIDXI32(): any

- - Defined in palette/rgbquant/colorHistogram.ts:64

  #### Returns any

### sample

- sample(pointBuffer: PointContainer): void

- - Defined in palette/rgbquant/colorHistogram.ts:53

  #### Parameters

  - ##### pointBuffer: PointContainer

  #### Returns void

Generated using TypeDoc