Interface ColorQuantizer
-
- All Known Implementing Classes:
KMeansQuantizer
,MedianCutQuantizer
public interface ColorQuantizer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<QColor>
quantize(Multiset<QColor> originalColors, int maxColorCount)
Quantize the given set of colors, returning a set no larger thanmaxColors
.
-
-
-
Method Detail
-
quantize
java.util.Set<QColor> quantize(Multiset<QColor> originalColors, int maxColorCount)
Quantize the given set of colors, returning a set no larger thanmaxColors
.The intent is to pick a set of colors which are representative of the original color set, but no specific guarantees are made.
- Parameters:
originalColors
- the colors in the original imagemaxColorCount
- the maximum number of colors to allow- Returns:
- a quantized collection of colors no larger than
maxColors
-
-