quantize

Analyzes the colors within a set of reference images and chooses a fixed number of colors to represent the set. The goal of the algorithm is to minimize the difference between the input and output images while minimizing the processing time.

void
quantize
(,
bool measureError = false
)

Parameters

images Image[]

The images to quantize.

measureError bool

Set to true to calculate quantization errors when quantizing the image. These can be accessed with: normalizedMeanError, normalizedMaxError and meanErrorPerPixel.

Meta