algorithm.matching
Class MatchingFilter

java.lang.Object
  extended by algorithm.matching.MatchingFilter

public class MatchingFilter
extends java.lang.Object

Filtering the matching results acording to specific constraints.


Field Summary
private static org.apache.log4j.Logger logger
          logger instance
 
Constructor Summary
MatchingFilter()
           
 
Method Summary
static void clearMatchings(Config config, CleanMatchingResult result)
          Clear the matching results according to the parameters specified in the config
static void clearMatchingsByAngle(CleanMatchingResult result, boolean plusStd)
          Filter the specified match list by applying the following process: The matching visualization is simulated, that is, the skeletons are placed next to each other and the corresponding end nodes are connected by a line.
static void clearMatchingsByMean(MatchList ml)
          Filter the specified match list by deleting all matchings with a matching costs bigger than the mean of all matching costs.
static void clearMatchingsByMeanAndStd(MatchList ml)
          Filter the specified match list by deleting all matchings with a matching costs bigger than the mean of all matching costs plus the standard deviation.
static void clearMatchingsByMedian(MatchList ml)
          Filter the specified match list by deleting all matchings wih a matching cost bigger than the median of all matchings.
static void clearMatchingsByThreshold(double threshold, MatchList ml)
          Clear the matching results in the specified matchlist by deleting all matchings with a matching cost bigger than the specified threshold
 
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

MatchingFilter

public MatchingFilter()
Method Detail

clearMatchings

public static void clearMatchings(Config config,
                                  CleanMatchingResult result)
Clear the matching results according to the parameters specified in the config

Parameters:
config - configuration instance holding information how matchings will be filtered
result - the matching result to be filtered

clearMatchingsByThreshold

public static void clearMatchingsByThreshold(double threshold,
                                             MatchList ml)
Clear the matching results in the specified matchlist by deleting all matchings with a matching cost bigger than the specified threshold

Parameters:
threshold - all matchings with matching costs bigger than this value will be deleted
ml - the matchings to be filtered

clearMatchingsByMeanAndStd

public static void clearMatchingsByMeanAndStd(MatchList ml)
Filter the specified match list by deleting all matchings with a matching costs bigger than the mean of all matching costs plus the standard deviation.

Parameters:
ml - the matchlist to be filtered

clearMatchingsByMean

public static void clearMatchingsByMean(MatchList ml)
Filter the specified match list by deleting all matchings with a matching costs bigger than the mean of all matching costs.

Parameters:
ml - the matchlist to be filtered

clearMatchingsByMedian

public static void clearMatchingsByMedian(MatchList ml)
Filter the specified match list by deleting all matchings wih a matching cost bigger than the median of all matchings.

Parameters:
ml - the matchlist to be filtered

clearMatchingsByAngle

public static void clearMatchingsByAngle(CleanMatchingResult result,
                                         boolean plusStd)
Filter the specified match list by applying the following process: The matching visualization is simulated, that is, the skeletons are placed next to each other and the corresponding end nodes are connected by a line. The angles of these lines are used as an indicator for a good matching. For each direction, the "mean angle" for all matchings is computed. Than, each line is compared to each of the angles. If a line differs from the mean angle too much, this matching is deleted.

Parameters:
result - the matching result to be filtered