Class QuantizerWu

java.lang.Object
org.glavo.monetfx.internal.quantize.QuantizerWu

public final class QuantizerWu extends Object
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.

  • Constructor Details

    • QuantizerWu

      public QuantizerWu()
  • Method Details

    • quantize

      public QuantizerResult quantize(int[] pixels, int colorCount)