Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/vectorizer/src/feature/extraction/image/colors/histogram.ts>ColorHistogram

Feature Extraction and Feature Selection in TypeScript
Go to Latest
class ColorHistogram
import { ColorHistogram } from "https://deno.land/x/vectorizer@v0.3.7/src/feature/extraction/image/colors/histogram.ts";

Histogram of colors with reduced space Effectively quantizes the image into 32768 colors

Constructors

new
ColorHistogram(sigBits: number)

Properties

readonly
length: number
readonly
raw: Uint32Array
sigBits: number

Methods

add(color: Pixel, amount: number): number
get(color: Pixel): number
getQuantized(color: Pixel): number

Static Methods

getColor(index: number, sigBits: number): Pixel