Skip to content

Histogram

Class: Histogram

Constructors

new Histogram()

new Histogram(pixels, opts): Histogram

Parameters

pixels

Pixels

opts

HistogramOptions

Returns

Histogram

Defined in

histogram.ts:20

Properties

bmax

bmax: number;

Defined in

histogram.ts:9


bmin

bmin: number;

Defined in

histogram.ts:8


getColorIndex()

getColorIndex: (r, g, b) => number;

Parameters

r

number

g

number

b

number

Returns

number

Defined in

histogram.ts:19


gmax

gmax: number;

Defined in

histogram.ts:11


gmin

gmin: number;

Defined in

histogram.ts:10


hist

hist: Uint32Array;

Defined in

histogram.ts:14


opts

opts: HistogramOptions;

Defined in

histogram.ts:22


pixels

pixels: Pixels;

Defined in

histogram.ts:21


rmax

rmax: number;

Defined in

histogram.ts:13


rmin

rmin: number;

Defined in

histogram.ts:12

Accessors

colorCount

Get Signature

get colorCount(): number
Returns

number

Defined in

histogram.ts:16