olivierlesnicki / quantize

A node.js module for color quantization, based on Leptonica.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get proportion of each pixel from the palette?

xseignard opened this issue · comments

Hello,

I've got one more question, is it possible to directly get the number of each pixels mapped to the reduced palette?

Or do we need to do another pass with .map(pixel) on each pixels? It feels we will encounter a performance drop since we will parse the image twice, no?

Regards,

Xavier

I'm afraid you'll need to do another pass