|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectio.loader.load2D.SampleParts2D
public class SampleParts2D
Sample the skeleton branches emanating from one critical node (end or junction node).
| Field Summary | |
|---|---|
private static org.apache.log4j.Logger |
logger
logger instance |
| Constructor Summary | |
|---|---|
SampleParts2D()
|
|
| Method Summary | |
|---|---|
private static SkeletonBranch |
createPart(SkeletonNode startnode,
SkeletonNode endnode,
java.util.List<SkeletonNode> nodesOnPart)
If an end node or junction node has been reached, this function can be used to create the part between the startnode and the current node. |
private static boolean |
isVisited(boolean[][] visited,
SkeletonNode node)
Test if the speicifed skeleton node has been visited. |
private static void |
markAsVisited(boolean[][] visited,
SkeletonNode node)
mark the specified skeleton node as visited. |
static java.util.List<SkeletonBranch> |
samplePartsPerStartNode(SkeletonNode startnode,
ij.ImagePlus skeletonImage,
java.util.List<SkeletonNode> endnodes,
java.util.List<SkeletonNode> junctionnodes)
Sample all skeleton branches emanating from the specified startnode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public SampleParts2D()
| Method Detail |
|---|
private static void markAsVisited(boolean[][] visited,
SkeletonNode node)
visited - the 3D array to mark visited nodes innode - the node to be marked as visited
private static boolean isVisited(boolean[][] visited,
SkeletonNode node)
visited - the 3D array where information is saved about visited nodesnode - the node to be tested
public static java.util.List<SkeletonBranch> samplePartsPerStartNode(SkeletonNode startnode,
ij.ImagePlus skeletonImage,
java.util.List<SkeletonNode> endnodes,
java.util.List<SkeletonNode> junctionnodes)
throws InvalidSkeletonException
startnode - the node for which the emanating parts will be sampledskeletonImage - the skeleton imageendnodes - a list of all endnodes in the skeleton imagejunctionnodes - a list of all junction nodes in the skeleton image
InvalidSkeletonException - if the skeleton seems broken
private static SkeletonBranch createPart(SkeletonNode startnode,
SkeletonNode endnode,
java.util.List<SkeletonNode> nodesOnPart)
startnode - - the startnode of the new partendnode - - the endnode of the new partnodesOnPart - - all nodes lieing on this part, in the order of their
occurance. Warning: this list cleared in the function.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||