Package | Description |
---|---|
net.sourceforge.jiu.color.quantization |
Modifier and Type | Field | Description |
---|---|---|
private OctreeNode[] |
OctreeNode.children |
|
private OctreeNode |
OctreeColorQuantizer.root |
Modifier and Type | Method | Description |
---|---|---|
OctreeNode[] |
OctreeNode.getChildren() |
Modifier and Type | Method | 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) |