|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object br.usp.ime.klava.segmentit.structures.HierarchyNode br.usp.ime.klava.segmentit.structures.HierarchyInternalNode
public class HierarchyInternalNode
Internal node a hierarchy of nested partitions.
Constructor Summary | |
---|---|
HierarchyInternalNode(TreeOfCriticalLakes TCL,
HierarchyNode node1,
HierarchyNode node2,
int weight,
EdgeType edgeType)
Constructs a HierarchyInternalNode formed by the fusion of
node1 with node2 . |
Method Summary | |
---|---|
javax.swing.tree.MutableTreeNode |
buildSubTree()
Returns a MutableTreeNode representation of this
HierarchyNode for visualization in a tree view. |
void |
deactivateSubTree()
Sets active to false to all the basins under
this HierarchyNode in the hierarchy. |
java.lang.String |
description(int level)
Returns a String representation of the subtree of the hierarchy rooted by this HierarchyNode . |
java.util.Collection<HierarchyNode> |
getChildren()
Returns the HierarchyNode s from which this HierarchyNode
was constructed. |
EdgeType |
getEdgeType()
Returns the type of the edge that generated this HierarchyInternalNode . |
int |
getNumPixels()
Returns the number of pixels in this HierarchyNode . |
int |
getWeight()
Returns the weight of the edge that generated this HierarchyInternalNode . |
void |
paint(java.awt.image.BufferedImage image,
java.awt.Color color)
Paints this HierarchyNode with the given color . |
void |
paintHierarchy(java.awt.image.BufferedImage image)
Paints the partition selected on the hierarchy (according to the active values) limited to the region that this
HierarchyNode represents. |
void |
setThreshold(int threshold)
Selects a partition on the hierarchy according to a threshold value. |
Methods inherited from class br.usp.ime.klava.segmentit.structures.HierarchyNode |
---|
description, getColor, getLabel, getMaximumBasin, getMetric, getParent, getValue, isActive, merge, paint, randomizeColor, refine, resetHierarchy, setActive, setParent, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HierarchyInternalNode(TreeOfCriticalLakes TCL, HierarchyNode node1, HierarchyNode node2, int weight, EdgeType edgeType)
HierarchyInternalNode
formed by the fusion of
node1
with node2
.
TCL
- the TreeOfCriticalLakes
where this
HierarchyInternalNode
belongsnode1
- a child of this HierarchyInternalNode
node2
- another child of this HierarchyInternalNode
weight
- the weight of the edge that links node1
to
node2
in the RAGedgeType
- the type of the edge that links node1
to
node2
in the RAG, considering the regions of
interestMethod Detail |
---|
public int getWeight()
HierarchyInternalNode
.
HierarchyInternalNode
public EdgeType getEdgeType()
HierarchyInternalNode
.
HierarchyInternalNode
public java.util.Collection<HierarchyNode> getChildren()
HierarchyNode
HierarchyNode
s from which this HierarchyNode
was constructed.
getChildren
in class HierarchyNode
HierarchyNode
s from which this HierarchyNode
was constructedpublic javax.swing.tree.MutableTreeNode buildSubTree()
HierarchyNode
MutableTreeNode
representation of this
HierarchyNode
for visualization in a tree view.
buildSubTree
in class HierarchyNode
HierarchyNode
and all
HierarchyNode
s below it in the hierarchypublic void paint(java.awt.image.BufferedImage image, java.awt.Color color)
HierarchyNode
HierarchyNode
with the given color
.
paint
in class HierarchyNode
image
- the image where this HierarchyNode
will be paintedcolor
- the Color
to be used to paint this
HierarchyNode
public void paintHierarchy(java.awt.image.BufferedImage image)
HierarchyNode
active
values) limited to the region that this
HierarchyNode
represents.
paintHierarchy
in class HierarchyNode
image
- the image where the partition will be paintedpublic void setThreshold(int threshold)
HierarchyNode
threshold
value.
setThreshold
in class HierarchyNode
threshold
- the threshold value to select a partition in the hierarchypublic void deactivateSubTree()
HierarchyNode
active
to false
to all the basins under
this HierarchyNode
in the hierarchy.
deactivateSubTree
in class HierarchyNode
public java.lang.String description(int level)
HierarchyNode
HierarchyNode
.
description
in class HierarchyNode
level
- the indentation level to be used in the description
HierarchyNode
public int getNumPixels()
HierarchyNode
HierarchyNode
.
getNumPixels
in class HierarchyNode
HierarchyNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |