diva.sketch.features
Class PathRatioFE

java.lang.Object
  extended by diva.sketch.features.PathRatioFE
All Implemented Interfaces:
FeatureExtractor

public class PathRatioFE
extends Object
implements FeatureExtractor

PathRatioFE computes the ratio between a stroke's convex hull path length and its actual path length, (convex_hull/pathlen).

Version:
$Revision: 1.10 $
Author:
Heloise Hse (hwawen@eecs.berkeley.edu)

Constructor Summary
PathRatioFE()
           
 
Method Summary
 double apply(TimedStroke s)
          Return the ratio between the stroke's convex hull path length and the its path length.
 String getName()
          Return the name of this feature extractor.
static double pathRatio(TimedStroke s)
          Return the ratio between the stroke's convex hull path length and the its path length.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathRatioFE

public PathRatioFE()
Method Detail

apply

public double apply(TimedStroke s)
Return the ratio between the stroke's convex hull path length and the its path length.

Specified by:
apply in interface FeatureExtractor

getName

public String getName()
Return the name of this feature extractor.

Specified by:
getName in interface FeatureExtractor

pathRatio

public static double pathRatio(TimedStroke s)
Return the ratio between the stroke's convex hull path length and the its path length.



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.