ColorImageQuantizerCalculatePalette Method (UnmanagedImage, Int32) |
Namespace: Accord.Imaging.ColorReduction
Exception | Condition |
---|---|
UnsupportedImageFormatException | Unsupported format of the source image - it must 24 or 32 bpp color image. |
The method processes the specified image and feeds color value of each pixel to the specified color quantization algorithm. Finally it returns color palette built by that algorithm.