io.loader.shared
Class Preprocessor

java.lang.Object
  extended by 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
 
Constructor Summary
Preprocessor()
           
 
Method Summary
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.
static double getEmanatingBranchLength(SkeletonObject so, SkeletonNode endnode)
          Get the length of the skeleton branch emanating from the specified skeleton end node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static org.apache.log4j.Logger logger
logger instance

Constructor Detail

Preprocessor

public Preprocessor()
Method Detail

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 cleaned
endnode - 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 in
config - holding the configuration parameter