Package | Description |
---|---|
net.sourceforge.jiu.color.quantization |
Classes to perform color image quantization, the reduction of the number of unique
colors in an image.
|
Modifier and Type | Field and Description |
---|---|
private OctreeNode[] |
OctreeNode.children |
private OctreeNode |
OctreeColorQuantizer.root |
Modifier and Type | Method and Description |
---|---|
OctreeNode[] |
OctreeNode.getChildren() |
Modifier and Type | Method and Description |
---|---|
static boolean |
OctreeNode.add(OctreeNode root,
int red,
int green,
int blue,
int bitsPerSample)
Add a color red-green-blue to the octree, given by its root node.
|
private int |
OctreeColorQuantizer.assignPaletteIndexValues(OctreeNode node,
int index)
If node is a leaf node, this method assigns palette index values
and determines the representative color, otherwise it simply
recursively calls itself for all child nodes.
|
private void |
OctreeColorQuantizer.initPalette(OctreeNode node,
Palette palette) |
void |
OctreeNode.setChildren(OctreeNode[] newChildren) |