diva.sketch.features
Class AreaRatioFE

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

public class AreaRatioFE
extends Object
implements FeatureExtractor

AreaRatioFE calculates the ratio of the convex hull area and the bounding box area of a stroke, (convex_hull/bbox).

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

Constructor Summary
AreaRatioFE()
           
 
Method Summary
 double apply(TimedStroke s)
          Return the ratio of the convex hull area and the bounding box area of the stroke.
static double areaRatio(TimedStroke s)
          Return the ratio of the convex hull area and the bounding box area of the stroke.
 String getName()
          Return the name of the feature extractor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AreaRatioFE

public AreaRatioFE()
Method Detail

apply

public double apply(TimedStroke s)
Return the ratio of the convex hull area and the bounding box area of the stroke.

Specified by:
apply in interface FeatureExtractor

areaRatio

public static double areaRatio(TimedStroke s)
Return the ratio of the convex hull area and the bounding box area of the stroke.


getName

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

Specified by:
getName in interface FeatureExtractor


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