|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgeometry.object.SkeletonPath
public class SkeletonPath
A skeleton path between a pair of end nodes is defined as the shortest path between those endnodes with the limitation, that all points in between have to be skeleton points.
Thus, a skeleton path is defined by the two enclosing skeleton points, which are both end nodes, and the skeleton nodes lying on the path between these two points.
| Field Summary | |
|---|---|
private java.util.List<SkeletonNode> |
allNodes
a list containing all nodes on this skeleton path |
private SkeletonNode |
endnode1
the skeleton path's first end node (the start point) |
private SkeletonNode |
endnode2
the skeleton path's second end node (the end point) |
private org.apache.log4j.Logger |
logger
logger instance |
private double |
pathLenght
the skeleton path'S length (that is, the number of nodes on this path |
private double[] |
vectorRepresentation
a special vector representation for skeleton paths, see SkeletonPathGetter |
| Constructor Summary | |
|---|---|
SkeletonPath(SkeletonNode endnode1,
SkeletonNode endnode2)
Constructor. |
|
| Method Summary | |
|---|---|
int |
compareTo(SkeletonPath arg0)
|
boolean |
equals(SkeletonPath path)
check if two skeleton paths are equal. |
java.util.List<SkeletonNode> |
getAllIncludedSkeletonPoints()
get a list of all skeletonnodes included in this path, but without end nodes. |
java.util.List<SkeletonNode> |
getAllNodes()
Get the list of all skeleton nodes on this path. |
SkeletonNode |
getEndnode1()
Get the skeleton path's first end node. |
SkeletonNode |
getEndnode2()
Get the skeleton path's second end node. |
double |
getPathLength()
get this skeleton path's length, that is, the number of skeleton nodes on this path. |
double[] |
getVectorRepresentation()
Get the skeleton path vector representation. |
void |
setAllNodes(java.util.List<SkeletonNode> allNodes)
Set all nodes on this skeleton path. |
void |
setEndnode1(SkeletonNode endnode1)
Set the skeleton path's first end node. |
void |
setEndnode2(SkeletonNode endnode2)
Set the skeleton path's second end node. |
void |
setVectorRepresentation(double[] vectorRepresentation)
Set the skeleton path vector representation. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.util.List<SkeletonNode> allNodes
private SkeletonNode endnode1
private SkeletonNode endnode2
private final org.apache.log4j.Logger logger
private double pathLenght
private double[] vectorRepresentation
SkeletonPathGetter
| Constructor Detail |
|---|
public SkeletonPath(SkeletonNode endnode1,
SkeletonNode endnode2)
endnode1 - the skeleton path's first endnodeendnode2 - the skeleton path's second endnode| Method Detail |
|---|
public boolean equals(SkeletonPath path)
throws InvalidSkeletonException
two skeleton paths are assumed as equal if both start- and end point are equal.
path - the skeleton path to be compared
InvalidSkeletonException - if one of the nodes is ambiguously end node and true skeleton
nodepublic java.util.List<SkeletonNode> getAllIncludedSkeletonPoints()
public java.util.List<SkeletonNode> getAllNodes()
throws InvalidSkeletonException
InvalidSkeletonExceptionpublic SkeletonNode getEndnode1()
public SkeletonNode getEndnode2()
public double getPathLength()
public double[] getVectorRepresentation()
The matching algorithm uses this special representation for skeleton paths, including information about the object's contour.
See SkeletonPathGetter for more
information.
public void setAllNodes(java.util.List<SkeletonNode> allNodes)
allNodes - an ordered list of all nodes on this skeleton path to be setpublic void setEndnode1(SkeletonNode endnode1)
endnode1 - - the skeleton path's first end nodepublic void setEndnode2(SkeletonNode endnode2)
endnode2 - the skeleton path's second end nodepublic void setVectorRepresentation(double[] vectorRepresentation)
The matching algorithm uses this special representation for skeleton paths, including information about the object's contour.
See SkeletonPathGetter for more
information.
vectorRepresentation - the skeleton path representation to be setpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(SkeletonPath arg0)
compareTo in interface java.lang.Comparable<SkeletonPath>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||