|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.cuni.jagrlib.DefaultProperty
cz.cuni.jagrlib.Piece
cz.cuni.jagrlib.piece.ImageKDTree
public class ImageKDTree
K-D-tree coding of raster images.
Suitable also for Delaynay vertex encoding (intermediate data are stored in RasterGraphics).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface cz.cuni.jagrlib.iface.KDTree |
|---|
KDTree.IntNode |
| Field Summary | |
|---|---|
protected static java.lang.String |
CATEGORY
Object category. |
protected boolean |
colorDimension
Use sample color as the 3rd dimension? |
protected RasterGraphics |
image
Accelerator: attached raster image. |
protected int |
mode
Construction mode. |
static RegPiece |
reg
Static registration instance for this class. |
protected KDTree.IntNode |
root
K-D-tree root node. |
protected static java.lang.String |
TEMPLATE_NAME
Object template identifier. |
static java.lang.String |
USE_COLOR
|
| Fields inherited from class cz.cuni.jagrlib.Piece |
|---|
channels, info, pl, plugs, TEMPLATE_TYPE, userBreak |
| Fields inherited from interface cz.cuni.jagrlib.iface.KDTree |
|---|
CONSTRUCTION_MODE, MODE_BREADTH_BALANCED, MODE_SPACE_BALANCED, USE_MEDIAN |
| Fields inherited from interface cz.cuni.jagrlib.iface.Property |
|---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
| Constructor Summary | |
|---|---|
ImageKDTree()
|
|
| Method Summary | |
|---|---|
protected KDTree.IntNode |
boxSpaceBalanced3D(KDTree.IntNode node,
int[] col)
Recursively build subordinate nodes.. |
protected void |
buildSpaceBalanced3D()
Builds space-balanced K-D-tree from the attached raster image. |
void |
buildTree()
Builds the K-D-tree using actual settings. |
java.lang.Object |
get(java.lang.String key)
Gets the given property. |
KDTree.IntNode |
getIntRoot()
Returns actual root node. |
void |
set(java.lang.String key,
java.lang.Object value)
Sets the given property. |
void |
setRoot(KDTree.IntNode r)
Tree is assigned from externally prepared data. |
static int |
setTemplate(Template t,
int ord)
General-purpose registration routine. |
protected void |
utilize3D(KDTree.IntNode node,
int[] col)
Recursively utilize the given sub-tree. |
void |
utilizeTree(KDTree.IntNode r)
Utilize (use) the given tree. |
| Methods inherited from class cz.cuni.jagrlib.Piece |
|---|
className, connect, findPlug, findPlug, getInfo, getInterface, getInterface, getPlug, getReg, init, isCompatible, isCompatible, isConnected, logError, logWarning, myInterface, newInputPlug, newOptOutputPlug, newOutputPlug, newPlug, noTemplates, propBegin, propBounds, propDefault, propEnd, propEnum, propManipulator, propManipulator, setProgressListener, setRegStrings, setTemplateDynamic, stop |
| Methods inherited from class cz.cuni.jagrlib.DefaultProperty |
|---|
booleanProperty, booleanProperty, colorDoubleProperty, colorProperty, commit, doubleProperty, doubleProperty, doubleProperty, enumProperty, floatProperty, floatProperty, floatProperty, intProperty, intProperty, intProperty, longProperty, longProperty, longProperty, set, stringProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface cz.cuni.jagrlib.iface.Property |
|---|
commit |
| Field Detail |
|---|
protected int mode
protected boolean colorDimension
protected KDTree.IntNode root
protected RasterGraphics image
public static final java.lang.String USE_COLOR
protected static final java.lang.String TEMPLATE_NAME
protected static final java.lang.String CATEGORY
public static final RegPiece reg
| Constructor Detail |
|---|
public ImageKDTree()
| Method Detail |
|---|
protected KDTree.IntNode boxSpaceBalanced3D(KDTree.IntNode node,
int[] col)
protected void buildSpaceBalanced3D()
protected void utilize3D(KDTree.IntNode node,
int[] col)
public void buildTree()
buildTree in interface KDTreemode,
colorDimensionpublic KDTree.IntNode getIntRoot()
getIntRoot in interface KDTreepublic void setRoot(KDTree.IntNode r)
setRoot in interface KDTreer - The new root node.public void utilizeTree(KDTree.IntNode r)
utilizeTree in interface KDTreer - The root node or null if internal tree should be used.
public void set(java.lang.String key,
java.lang.Object value)
set in interface Propertyset in class DefaultPropertykey - Key string.value - The new value.Property.commit()public java.lang.Object get(java.lang.String key)
get in interface Propertyget in class DefaultPropertykey - Key string.
null.
public static int setTemplate(Template t,
int ord)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||