diva.sketch.features
Class BBoxDiagonalLengthFE

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

public class BBoxDiagonalLengthFE
extends Object
implements FeatureExtractor

BBoxDiagonalLengthFE computes the diagonal length of a stroke's bounding box. One of Rubine's features.

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

Constructor Summary
BBoxDiagonalLengthFE()
           
 
Method Summary
 double apply(TimedStroke s)
          Return the length of the diagonal of the stroke's bounding box.
static double bboxDiagonalLength(TimedStroke s)
          Return the length of the diagonal 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

BBoxDiagonalLengthFE

public BBoxDiagonalLengthFE()
Method Detail

apply

public double apply(TimedStroke s)
Return the length of the diagonal of the stroke's bounding box.

Specified by:
apply in interface FeatureExtractor

bboxDiagonalLength

public static double bboxDiagonalLength(TimedStroke s)
Return the length of the diagonal 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.