quantize
quantize copied to clipboard
A node.js module for color quantization, based on Leptonica.
Closes #9 The number of colors returned by quantize should match maxcolors, including for values > 7. I've tested this fix using a test.js from a separate project that requires...
This fixes the Vbox.contains method, so we can use the map fn of ColorMap
The inner function used by quantize was counting the number of colors added to the palette, starting from 1. This only works when the PQueue passed contains only 1 VBox;...
Currently: maximumColorCount - The maximum number of colours allowed in the reduced palette When 1
Any option to get the indexes of pixels matched on array for each color in palette?