|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hd.d.pg2k.svrCore.MIME.Quantize.Cube.Node
static class Quantize.Cube.Node
A single Node in the tree.
| Field Summary | |
|---|---|
(package private) Quantize.Cube.Node[] |
child
|
(package private) int |
color_number
|
(package private) Quantize.Cube |
cube
|
(package private) int |
id
|
(package private) int |
level
|
(package private) int |
mid_blue
|
(package private) int |
mid_green
|
(package private) int |
mid_red
|
(package private) int |
nchild
|
(package private) int |
number_pixels
|
(package private) Quantize.Cube.Node |
parent
|
(package private) int |
total_blue
|
(package private) int |
total_green
|
(package private) int |
total_red
|
(package private) int |
unique
|
| Constructor Summary | |
|---|---|
Quantize.Cube.Node(Quantize.Cube.Node parent,
int id,
int level)
|
|
Quantize.Cube.Node(Quantize.Cube cube)
|
|
| Method Summary | |
|---|---|
(package private) void |
closestColor(int red,
int green,
int blue,
Quantize.Cube.Search search)
|
(package private) void |
colormap()
|
(package private) static int |
distance(int color,
int r,
int g,
int b)
Figure out the distance between this node and som color. |
(package private) void |
pruneChild()
Remove this child node, and make sure our parent absorbs our pixel statistics. |
(package private) void |
pruneLevel()
Prune the lowest layer of the tree. |
(package private) int |
reduce(int threshold,
int next_threshold)
Remove any nodes that have fewer than threshold pixels. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
Quantize.Cube cube
Quantize.Cube.Node parent
Quantize.Cube.Node[] child
int nchild
int id
int level
int mid_red
int mid_green
int mid_blue
int number_pixels
int unique
int total_red
int total_green
int total_blue
int color_number
| Constructor Detail |
|---|
Quantize.Cube.Node(Quantize.Cube cube)
Quantize.Cube.Node(Quantize.Cube.Node parent,
int id,
int level)
| Method Detail |
|---|
void pruneChild()
void pruneLevel()
int reduce(int threshold,
int next_threshold)
void colormap()
void closestColor(int red,
int green,
int blue,
Quantize.Cube.Search search)
static final int distance(int color,
int r,
int g,
int b)
public java.lang.String toString()
toString in class java.lang.Object
|
DHD Multimedia Gallery V1.57.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||