|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.features.AspectRatioFE
public class AspectRatioFE
AspectRatioFE calculates the ratio of the width and the height from a stroke's bounding box, (width/height).
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 |
---|
public AspectRatioFE()
Method Detail |
---|
public double apply(TimedStroke s)
apply
in interface FeatureExtractor
public static double aspectRatio(TimedStroke s)
public String getName()
getName
in interface FeatureExtractor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |