quantize method
override
Implementation
@override
Future<QuantizerResult> quantize(Iterable<int> pixels, int colorCount) async {
final result = await QuantizerMap().quantize(pixels, colorCount);
constructHistogram(result.colorToCount);
computeMoments();
final createBoxesResult = createBoxes(colorCount);
final results = createResult(createBoxesResult.resultCount);
return QuantizerResult(Map.fromEntries(results.map((e) => MapEntry(e, 0))));
}