public class NeuQuant extends Object
Modifier and Type | Field and Description |
---|---|
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 |
Constructor and Description |
---|
NeuQuant(byte[] thepic,
int len,
int sample) |
Modifier and Type | Method and Description |
---|---|
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) |
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 |
unbiasnet() |
protected static final int NETSIZE
protected static final int PRIME1
protected static final int PRIME2
protected static final int PRIME3
protected static final int PRIME4
protected static final int MINPICTUREBYTES
protected static final int MAXNETPOS
protected static final int NETBIASSHIFT
protected static final int NCYCLES
protected static final int INTBIASSHIFT
protected static final int INTBIAS
protected static final int GAMMASHIFT
protected static final int GAMMA
protected static final int BETASHIFT
protected static final int BETA
protected static final int BETAGAMMA
protected static final int INITRAD
protected static final int RADIUSBIASSHIFT
protected static final int RADIUSBIAS
protected static final int INITRADIUS
protected static final int RADIUSDEC
protected static final int ALPHABIASSHIFT
protected static final int INITALPHA
protected int alphadec
protected static final int RADBIASSHIFT
protected static final int RADBIAS
protected static final int ALPHARADBSHIFT
protected static final int ALPHARADBIAS
protected byte[] thepicture
protected int lengthcount
protected int samplefac
protected int[][] network
protected int[] netindex
protected int[] bias
protected int[] freq
protected int[] radpower
public byte[] colorMap()
public void inxbuild()
public void learn()
public int map(int b, int g, int r)
public byte[] process()
public void unbiasnet()
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)
Copyright © 2024. All rights reserved.