public class NeuQuant extends Object
Modifier and Type | Field and Description |
---|---|
static int |
alphabiasshift |
static double |
beta |
static double |
betagamma |
static int |
bgColour |
protected int[][] |
colormap |
static int |
cutnetsize |
static double |
gamma |
static int |
initalpha |
static int |
initBiasRadius |
static int |
initrad |
static int |
maxnetpos |
static int |
maxprime |
static int |
ncycles |
static int |
netsize |
protected int[][] |
pixels |
static int |
prime1 |
static int |
prime2 |
static int |
prime3 |
static int |
prime4 |
static int |
radiusbias |
static int |
radiusbiasshift |
static int |
radiusdec |
static int |
specials |
Constructor and Description |
---|
NeuQuant(int sample,
int[][] pixels) |
Modifier and Type | Method and Description |
---|---|
int |
convert(int pixel) |
int |
getColorCount() |
int[] |
getColorMap() |
void |
init() |
protected int |
inxsearch(int b,
int g,
int r) |
int |
lookup(int pixel) |
protected void |
setUpArrays() |
public static final int ncycles
public static final int netsize
public static final int specials
public static final int bgColour
public static final int cutnetsize
public static final int maxnetpos
public static final int initrad
public static final int radiusbiasshift
public static final int radiusbias
public static final int initBiasRadius
public static final int radiusdec
public static final int alphabiasshift
public static final int initalpha
public static final double gamma
public static final double beta
public static final double betagamma
protected int[][] colormap
public static final int prime1
public static final int prime2
public static final int prime3
public static final int prime4
public static final int maxprime
protected int[][] pixels
Copyright © 2014. All rights reserved.