|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectio.loader.shared.NodeArea
public abstract class NodeArea
This is a helper class to handle ambigous junction nodes in some
constellations of nodes. In 2D as well as in 3D, in some node constellations
it can happen that in one crossing of skeleton branches, multiple skeleton
nodes are recognized as junction nodes as they all have more than two
neighbors. These junction nodes can than be grouped into a NodeArea.
The cleanNodeArea() function will try to pick one of the
nodes in a node area more or less wise.
| Field Summary | |
|---|---|
protected java.util.List<SkeletonNode> |
junctionNodes
List of all found junction nodes, potentially containing redundant nodes. |
protected org.apache.log4j.Logger |
logger
logger instance |
| Constructor Summary | |
|---|---|
NodeArea()
Constructor. |
|
NodeArea(java.util.List<SkeletonNode> nodes)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addNode(SkeletonNode node)
|
abstract SkeletonNode |
cleanNodeArea()
extract the prefered junction node from this node area. |
boolean |
contains(SkeletonNode n)
Test of this node area contains the specified skeleton node. |
boolean |
needsCleaning()
Test if this is a "valid" Node area. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<SkeletonNode> junctionNodes
protected org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public NodeArea()
public NodeArea(java.util.List<SkeletonNode> nodes)
nodes - the list of nodes in this area| Method Detail |
|---|
public abstract SkeletonNode cleanNodeArea()
throws InvalidSkeletonException
NodeArea
InvalidSkeletonException - if the skeleton is broken
public void addNode(SkeletonNode node)
throws InvalidSkeletonException
InvalidSkeletonException
public boolean contains(SkeletonNode n)
throws InvalidSkeletonException
n - the skeleton node to test this node area for
InvalidSkeletonExceptionpublic boolean needsCleaning()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||