diva.sketch.features
Class AspectRatioFE

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

public class AspectRatioFE
extends Object
implements FeatureExtractor

AspectRatioFE calculates the ratio of the width and the height from a stroke's bounding box, (width/height).

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

Constructor Summary
AspectRatioFE()
           
 
Method Summary
 double apply(TimedStroke s)
          Return the ratio of the width and height of the stroke's bounding box.
static double aspectRatio(TimedStroke s)
          Return the ratio of the width and height of the stroke's bounding box.
 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

AspectRatioFE

public AspectRatioFE()
Method Detail

apply

public double apply(TimedStroke s)
Return the ratio of the width and height of the stroke's bounding box.

Specified by:
apply in interface FeatureExtractor

aspectRatio

public static double aspectRatio(TimedStroke s)
Return the ratio of the width and height of the stroke's bounding box.


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.