public class KMeansClusteringQuantizerApache extends ColorQuantizer
KMeansPlusPlusClusterer to perform the
clustering.| Modifier and Type | Class and Description |
|---|---|
static class |
KMeansClusteringQuantizerApache.Parameters |
static class |
KMeansClusteringQuantizerApache.SamplingMethod |
MAX_RGB| Constructor and Description |
|---|
KMeansClusteringQuantizerApache(int[] pixels) |
KMeansClusteringQuantizerApache(int[] pixels,
KMeansClusteringQuantizerApache.Parameters params)
Creates a new quantizer instance from the supplied sequence
of color values (assumed to be ARGB-encoded integers).
|
| Modifier and Type | Method and Description |
|---|---|
int[][] |
getColorMap()
Lists the color clusters to System.out (intended for debugging only).
|
findColorIndex, intToRgb, listColorMap, log2, quantize, quantize, quantize, rgbToInt, sqrpublic KMeansClusteringQuantizerApache(int[] pixels, KMeansClusteringQuantizerApache.Parameters params)
pixels - Sequence of input color values.params - Parameter object.public KMeansClusteringQuantizerApache(int[] pixels)
public int[][] getColorMap()
getColorMap in class ColorQuantizerCopyright © 2006–2017, Wilhelm Burger, Mark J. Burge (BSD 2-Clause Simplified License)