In reviewing the MMCQ Quantizer I noticed that the histogram's colorCount is never actually used, as opts.colorCount is used throughout the function.
From what I can tell, the quantizer's color count is derived from the pixel data, so can be different from the options value.
|
const colorCount = vbox.histogram.colorCount; |
In reviewing the MMCQ Quantizer I noticed that the histogram's
colorCountis never actually used, asopts.colorCountis used throughout the function.From what I can tell, the quantizer's color count is derived from the pixel data, so can be different from the options value.
node-vibrant/packages/vibrant-quantizer-mmcq/src/index.ts
Line 41 in d6d6a2d