Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ColorHistogram

Hierarchy

  • ColorHistogram

Index

Constructors

constructor

Properties

Private _histogram

_histogram: object

Type declaration

  • [color: string]: number

Private _hueStats

_hueStats: HueStatistics

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 _colorStats1D

Private _colorStats2D

Private _iterateBox

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

Private _makeBoxes

  • _makeBoxes(width: any, height: any, stepX: any, stepY: any): Array<any>
  • partitions a rectangle of width x height into array of boxes stepX x stepY (or less)

    Parameters

    • width: any
    • height: any
    • stepX: any
    • stepY: any

    Returns Array<any>

getImportanceSortedColorsIDXI32

  • getImportanceSortedColorsIDXI32(): Array<number>

sample

Generated using TypeDoc