Constructors
constructor
-
Parameters
-
method: number
-
colors: number
Properties
Private _histogram
_histogram: object
Private _initColors
_initColors: number
Private _method
_method: number
Private _minHueCols
_minHueCols: number
Static Private _boxPixels
_boxPixels: number
Static Private _boxSize
_boxSize: Array<number>
Static Private _hueGroups
_hueGroups: number
Methods
Private _iterateBox
- _iterateBox(bbox: any, wid: any, fn: any): void
-
Parameters
-
bbox: any
-
wid: any
-
fn: any
Returns void
Private _makeBoxes
- _makeBoxes(width: any, height: any, stepX: any, stepY: any): Array<any>
-
Parameters
-
width: any
-
height: any
-
stepX: any
-
stepY: any
Returns Array<any>
getImportanceSortedColorsIDXI32
- getImportanceSortedColorsIDXI32(): Array<number>
partitions a rectangle of width x height into array of boxes stepX x stepY (or less)