QuantizerWu

class QuantizerWu : Quantizer

An image quantizer that divides the image's pixels into clusters by recursively cutting an RGB cube, based on the weight of pixels in each area of the cube.

The algorithm was described by Xiaolin Wu in Graphic Gems II, published in 1991.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun quantize(pixels: Array<Int>, colorCount: Int): QuantizerResult