| Frames | No Frames |
Constructors with parameter type net.sourceforge.jiu.color.quantization.MedianCutNode | |
Creates a node for a Median Cut tree of nodes with index values for
some external color array and the parent node. | |
Fields of type net.sourceforge.jiu.color.quantization.MedianCutNode | |
| MedianCutNode | |
| MedianCutNode | |
| MedianCutNode | |
| MedianCutNode | |
Methods with parameter type net.sourceforge.jiu.color.quantization.MedianCutNode | |
| void | |
| double | Computes the distance in RGB color space between the representative color of this node and the
argument node and returns it as non-negative value. |
| MedianCutNode | Traverses tree given by argument node and returns leaf with largest distribution
of samples for any of its three components. |
| int | For each node in the argument array computes the distance between the
representative color of that node and the color given by the three
argument samples. |
| void | Calls findRepresentativeColor with node if node is a leaf. |
| int | Recursively visits node and its descendants, assigning ascending
palette index values to leaves via MedianCutNode.setPaletteIndex(int). |
| void | Sets the successor nodes for this node. |
| void | |
Methods with return type net.sourceforge.jiu.color.quantization.MedianCutNode | |
| MedianCutNode[] | Creates a linear list of leaf nodes. |
| MedianCutNode | Traverses tree given by argument node and returns leaf with largest distribution
of samples for any of its three components. |
| MedianCutNode | MedianCutQuantizer.findNearestNeighbor(int[] rgb) For a given RGB value, searches the node in the internal node tree whose
representative color is closest to this color. |
| MedianCutNode | Returns left successor node (or null if this node is a leaf). |
| MedianCutNode | Returns parent node (or null if this node is the root node). |
| MedianCutNode | Returns right successor node (or null if this node is a leaf). |
| MedianCutNode | MedianCutNode.getSuccessor(int[] rgb) |