Class NeuQuant

java.lang.Object
com.luna.common.img.gif.NeuQuant

public class NeuQuant extends Object
NeuQuant Neural-Net Quantization Algorithm
Author:
Dekker
  • Field Details

  • Constructor Details

    • NeuQuant

      public NeuQuant(byte[] thepic, int len, int sample)
  • Method Details

    • colorMap

      public byte[] colorMap()
    • inxbuild

      public void inxbuild()
    • learn

      public void learn()
    • map

      public int map(int b, int g, int r)
    • process

      public byte[] process()
    • unbiasnet

      public void unbiasnet()
    • alterneigh

      protected void alterneigh(int rad, int i, int b, int g, int r)
    • altersingle

      protected void altersingle(int alpha, int i, int b, int g, int r)
    • contest

      protected int contest(int b, int g, int r)