|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectio.loader.load3D.SampleParts3D
public class SampleParts3D
Sample single skeleton branches in 3D data.
| Field Summary | |
|---|---|
private static org.apache.log4j.Logger |
logger
logger instance |
| Constructor Summary | |
|---|---|
SampleParts3D()
|
|
| 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)
Check if the specified node has already been visited. |
private static void |
markAsVisited(boolean[][][] visited,
SkeletonNode node)
Mark the the specified node as visited. |
static java.util.List<SkeletonBranch> |
samplePartsPerStartNode(SkeletonNode startnode,
int[][][] thinningcube,
java.util.List<SkeletonNode> endnodes,
java.util.List<SkeletonNode> junctionnodes,
double widthDim,
double heightDim,
double depthDim)
sample all skeleton parts emanating from the specified startnode which has to be a critical node, that is, either end node or junction node. |
| 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 SampleParts3D()
| Method Detail |
|---|
public static java.util.List<SkeletonBranch> samplePartsPerStartNode(SkeletonNode startnode,
int[][][] thinningcube,
java.util.List<SkeletonNode> endnodes,
java.util.List<SkeletonNode> junctionnodes,
double widthDim,
double heightDim,
double depthDim)
throws InvalidSkeletonException
startnode - - the node where to start sampling all partsthinningcube - - the skeleton information, where each "not-skeleton" element
has entry 0endnodes - - a list of all end nodes in the skeletonjunctionnodes - - a list of all junction nodes in the skeleton
InvalidSkeletonException - - if the skeleton seems to be broken
private static void markAsVisited(boolean[][][] visited,
SkeletonNode node)
visited - - 3d array where the coordinates of the passed node are set to
truenode - - the node to mark as visited
private static boolean isVisited(boolean[][][] visited,
SkeletonNode node)
visited - - 3d array where an entry is set to true if these coordinates
already have been visitednode - - the node to check for if this was already visited
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 | |||||||||