io.loader.shared
Class Preprocessor
java.lang.Object
io.loader.shared.Preprocessor
public class Preprocessor
- extends java.lang.Object
This is a trial to eliminate spurious branches from a skeleton. All skeleton
branches emanating from the skeleton end nodes are determined. Branches with
a shorter length than the threshold set in the configuration file are
deleted, and thus are the end node this branch ends in.
|
Field Summary |
private static org.apache.log4j.Logger |
logger
logger instance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static org.apache.log4j.Logger logger
- logger instance
Preprocessor
public Preprocessor()
getEmanatingBranchLength
public static double getEmanatingBranchLength(SkeletonObject so,
SkeletonNode endnode)
- Get the length of the skeleton branch emanating from the specified
skeleton end node
- Parameters:
so - the skeleton object to be cleanedendnode - the end node to be examined
- Returns:
- the length of the skeleton branch emanating from the specified
skeleton end node
deleteSpuriousBranches
public static void deleteSpuriousBranches(SkeletonObject so,
Config config)
- Delete all branches that emanate from an end node and are shorter than
the parameter listed in the configuration. The end node is deleted from
the skeleton as well as from the skeleton graph.
- Parameters:
so - the skeleton object to delete the spurious branches inconfig - holding the configuration parameter