|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthhreco.fragmentation.Fragmenter
Implementation of the fragmentation algorithms that fragment a symbol based on templates specification. The algorithms use a dynamic programming approach.
Constructor Summary | |
Fragmenter()
|
Method Summary | |
protected static EllipseBasis |
ellipseFit(double[] xvals,
double[] yvals,
int num)
Fit an ellipse to the set of points. |
static FitData |
fragmentWithTemplate(TimedStroke[] strokes,
int numE,
int numL)
Fragment the given sequence of strokes with the number of ellipses and the number of lines specified by numE and numL. |
static FitData |
fragmentWithTemplate(TimedStroke[] strokes,
java.lang.String template)
Fragment the given sequence of strokes with the specified template, an ordered sequence of E's and L's. |
protected static LineBasis |
lineFit(double[] xvals,
double[] yvals,
int num)
Use total regression to fit the best line to the given set of points. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Fragmenter()
Method Detail |
public static FitData fragmentWithTemplate(TimedStroke[] strokes, int numE, int numL)
public static FitData fragmentWithTemplate(TimedStroke[] strokes, java.lang.String template)
protected static EllipseBasis ellipseFit(double[] xvals, double[] yvals, int num)
protected static LineBasis lineFit(double[] xvals, double[] yvals, int num)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |