org.opensourcephysics.media.gif
Class NeuQuant

java.lang.Object
  extended by org.opensourcephysics.media.gif.NeuQuant

public class NeuQuant
extends java.lang.Object

A class to provide color quantization for GIF


Field Summary
protected static int alphabiasshift
           
protected  int alphadec
           
protected static int alpharadbias
           
protected static int alpharadbshift
           
protected static int beta
           
protected static int betagamma
           
protected static int betashift
           
protected  int[] bias
           
protected  int[] freq
           
protected static int gamma
           
protected static int gammashift
           
protected static int initalpha
           
protected static int initrad
           
protected static int initradius
           
protected static int intbias
           
protected static int intbiasshift
           
protected  int lengthcount
           
protected static int maxnetpos
           
protected static int minpicturebytes
           
protected static int ncycles
           
protected static int netbiasshift
           
protected  int[] netindex
           
protected static int netsize
           
protected  int[][] network
           
protected static int prime1
           
protected static int prime2
           
protected static int prime3
           
protected static int prime4
           
protected static int radbias
           
protected static int radbiasshift
           
protected static int radiusbias
           
protected static int radiusbiasshift
           
protected static int radiusdec
           
protected  int[] radpower
           
protected  int samplefac
           
protected  byte[] thepicture
           
 
Method Summary
protected  void alterneigh(int rad, int i, int b, int g, int r)
           
protected  void altersingle(int alpha, int i, int b, int g, int r)
           
protected  int contest(int b, int g, int r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

netsize

protected static final int netsize
See Also:
Constant Field Values

prime1

protected static final int prime1
See Also:
Constant Field Values

prime2

protected static final int prime2
See Also:
Constant Field Values

prime3

protected static final int prime3
See Also:
Constant Field Values

prime4

protected static final int prime4
See Also:
Constant Field Values

minpicturebytes

protected static final int minpicturebytes
See Also:
Constant Field Values

maxnetpos

protected static final int maxnetpos
See Also:
Constant Field Values

netbiasshift

protected static final int netbiasshift
See Also:
Constant Field Values

ncycles

protected static final int ncycles
See Also:
Constant Field Values

intbiasshift

protected static final int intbiasshift
See Also:
Constant Field Values

intbias

protected static final int intbias
See Also:
Constant Field Values

gammashift

protected static final int gammashift
See Also:
Constant Field Values

gamma

protected static final int gamma
See Also:
Constant Field Values

betashift

protected static final int betashift
See Also:
Constant Field Values

beta

protected static final int beta
See Also:
Constant Field Values

betagamma

protected static final int betagamma
See Also:
Constant Field Values

initrad

protected static final int initrad
See Also:
Constant Field Values

radiusbiasshift

protected static final int radiusbiasshift
See Also:
Constant Field Values

radiusbias

protected static final int radiusbias
See Also:
Constant Field Values

initradius

protected static final int initradius
See Also:
Constant Field Values

radiusdec

protected static final int radiusdec
See Also:
Constant Field Values

alphabiasshift

protected static final int alphabiasshift
See Also:
Constant Field Values

initalpha

protected static final int initalpha
See Also:
Constant Field Values

alphadec

protected int alphadec

radbiasshift

protected static final int radbiasshift
See Also:
Constant Field Values

radbias

protected static final int radbias
See Also:
Constant Field Values

alpharadbshift

protected static final int alpharadbshift
See Also:
Constant Field Values

alpharadbias

protected static final int alpharadbias
See Also:
Constant Field Values

thepicture

protected byte[] thepicture

lengthcount

protected int lengthcount

samplefac

protected int samplefac

network

protected int[][] network

netindex

protected int[] netindex

bias

protected int[] bias

freq

protected int[] freq

radpower

protected int[] radpower
Method Detail

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)