@thi.ng/pixel-dominant-colors
Version:
k-means based dominant color extraction from images/pixel buffers
6 lines • 508 B
TypeScript
import type { FloatBuffer } from "@thi.ng/pixel/float";
import type { ReadonlyVec } from "@thi.ng/vectors";
import type { DominantColor, DominantColorOpts } from "./api.js";
export declare const dominantColorsMeanCut: (img: FloatBuffer | ReadonlyVec[], num: number, opts?: Partial<DominantColorOpts>) => DominantColor[];
export declare const dominantColorsMedianCut: (img: FloatBuffer | ReadonlyVec[], num: number, opts?: Partial<DominantColorOpts>) => DominantColor[];
//# sourceMappingURL=mean-cut.d.ts.map