Package com.luna.common.img.gif
Class NeuQuant
java.lang.Object
com.luna.common.img.gif.NeuQuant
NeuQuant Neural-Net Quantization Algorithm
- Author:
- Dekker
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected int[]
protected int[]
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected int
protected static final int
protected static final int
protected static final int
protected static final int
protected int[]
protected static final int
protected int[][]
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected int[]
protected int
protected byte[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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) byte[]
colorMap()
protected int
contest
(int b, int g, int r) void
inxbuild()
void
learn()
int
map
(int b, int g, int r) byte[]
process()
void
-
Field Details
-
NETSIZE
protected static final int NETSIZE- See Also:
-
PRIME1
protected static final int PRIME1- See Also:
-
PRIME2
protected static final int PRIME2- See Also:
-
PRIME3
protected static final int PRIME3- See Also:
-
PRIME4
protected static final int PRIME4- See Also:
-
MINPICTUREBYTES
protected static final int MINPICTUREBYTES- See Also:
-
MAXNETPOS
protected static final int MAXNETPOS- See Also:
-
NETBIASSHIFT
protected static final int NETBIASSHIFT- See Also:
-
NCYCLES
protected static final int NCYCLES- See Also:
-
INTBIASSHIFT
protected static final int INTBIASSHIFT- See Also:
-
INTBIAS
protected static final int INTBIAS- See Also:
-
GAMMASHIFT
protected static final int GAMMASHIFT- See Also:
-
GAMMA
protected static final int GAMMA- See Also:
-
BETASHIFT
protected static final int BETASHIFT- See Also:
-
BETA
protected static final int BETA- See Also:
-
BETAGAMMA
protected static final int BETAGAMMA- See Also:
-
INITRAD
protected static final int INITRAD- See Also:
-
RADIUSBIASSHIFT
protected static final int RADIUSBIASSHIFT- See Also:
-
RADIUSBIAS
protected static final int RADIUSBIAS- See Also:
-
INITRADIUS
protected static final int INITRADIUS- See Also:
-
RADIUSDEC
protected static final int RADIUSDEC- See Also:
-
ALPHABIASSHIFT
protected static final int ALPHABIASSHIFT- See Also:
-
INITALPHA
protected static final int INITALPHA- See Also:
-
alphadec
protected int alphadec -
RADBIASSHIFT
protected static final int RADBIASSHIFT- See Also:
-
RADBIAS
protected static final int RADBIAS- See Also:
-
ALPHARADBSHIFT
protected static final int ALPHARADBSHIFT- See Also:
-
ALPHARADBIAS
protected static final int ALPHARADBIAS- See Also:
-
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
-
-
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)
-