hak
Class Octree

java.lang.Object
  |
  +--hak.Octree

public class Octree
extends java.lang.Object


Field Summary
static int MAXDEPTH
           
 
Constructor Summary
Octree()
           
 
Method Summary
 int findColor(hak.Node tree, hak.RGB color)
           
 void initVGAPalette(hak.Node tree, int[] index)
           
 hak.Node insertNode(hak.Node node, hak.RGB color, int depth)
           
 hak.Node killTree(hak.Node tree)
           
 void octreeQuantization(short[][] ra, short[][] ga, short[][] ba, int ki)
           
 void reduceTree()
           
 void reMap(short[][] r, short[][] g, short[][] b)
           
 void setColor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAXDEPTH

public static final int MAXDEPTH
Constructor Detail

Octree

public Octree()
Method Detail

findColor

public int findColor(hak.Node tree,
                     hak.RGB color)

initVGAPalette

public void initVGAPalette(hak.Node tree,
                           int[] index)

insertNode

public hak.Node insertNode(hak.Node node,
                           hak.RGB color,
                           int depth)

killTree

public hak.Node killTree(hak.Node tree)

octreeQuantization

public void octreeQuantization(short[][] ra,
                               short[][] ga,
                               short[][] ba,
                               int ki)

reduceTree

public void reduceTree()

reMap

public void reMap(short[][] r,
                  short[][] g,
                  short[][] b)

setColor

public void setColor()