Uses of Class
hhreco.recognition.TimedStroke

Packages that use TimedStroke
hhreco.apps This package contains applications built using hhreco classes. 
hhreco.fragmentation This package provides the utilities for decomposing symbols into simpler, perceptually-salient structures, line segments (L) and elliptical segments (E). 
hhreco.recognition Interfaces and core classes for doing multi-stroke symbol recognition. 
hhreco.toolbox Stroke preprocessing routines. 
 

Uses of TimedStroke in hhreco.apps
 

Fields in hhreco.apps declared as TimedStroke
(package private)  TimedStroke[] FragmentApp.SD._orig
           
(package private)  TimedStroke[] FragmentApp.SD._strokes
           
 

Methods in hhreco.apps with parameters of type TimedStroke
 void FragmentApp.SD.paintStroke(java.awt.Graphics g, TimedStroke s, boolean showPoints, double scaleFactor)
           
 

Constructors in hhreco.apps with parameters of type TimedStroke
FragmentApp.SD(TimedStroke[] orig, TimedStroke[] strokes)
          Instantiate a SD that paints the given set of strokes.
 

Uses of TimedStroke in hhreco.fragmentation
 

Methods in hhreco.fragmentation with parameters of type TimedStroke
static FitData Fragmenter.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 Fragmenter.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.
 

Uses of TimedStroke in hhreco.recognition
 

Methods in hhreco.recognition that return TimedStroke
static TimedStroke MSTrainingParser.parsePoints(java.lang.String val)
          val is a stream of numbers representing the points in a pen stroke.
 TimedStroke[] MSTrainingModel.getPositiveExample(java.lang.String t, int i)
          Return the positive example at the specified index for the given type.
 TimedStroke[] MSTrainingModel.getNegativeExample(java.lang.String t, int i)
          Return the negative example at the specified index for the given type.
static TimedStroke[] HHRecognizer.preprocess(TimedStroke[] s, ApproximateStrokeFilter approxFilter, InterpolateStrokeFilter interpFilter, java.awt.geom.AffineTransform at)
          This preprocessing routine normalizes the scaling and the translation of the given shape.
 

Methods in hhreco.recognition with parameters of type TimedStroke
 double[] ZernikeFE.apply(TimedStroke[] s)
          Return the magnitudes of the Zernike moments of the default order.
 double[] ZernikeFE.apply(TimedStroke[] s, int order)
          Return the magnitudes of the Zernike moments of the specified order.
static double[] ZernikeFE.zernikeMoments(TimedStroke[] s)
          Compute Zernike moments of the stroke.
static double[] ZernikeFE.zernikeMoments(TimedStroke[] s, int order)
          Compute Zernike moments of the specified order and return the magnitudes of the moments.
 RecognitionSet StrokeRecognizer.strokeStarted(TimedStroke s)
          Invoked when a stroke starts.
 RecognitionSet StrokeRecognizer.strokeModified(TimedStroke s)
          Invoked when a stroke has been modified, for example, points have been added to the stroke.
 RecognitionSet StrokeRecognizer.strokeCompleted(TimedStroke s)
          Invoked when a stroke is completed.
 RecognitionSet MultiStrokeRecognizer.sessionCompleted(TimedStroke[] strokes)
          Perform recognition on a set of strokes and return the recognition result in a ReconitionSet.
static void MSTrainingWriter.writeExample(TimedStroke[] strokes, boolean label, java.io.Writer writer)
          Write the stroke information (x, y, timestamp) and its label (indicating either positive or negative example) to the character-output stream.
static void MSTrainingWriter.writeStroke(TimedStroke s, java.io.Writer writer)
          Write out the sequence of points in the stroke.
 void MSTrainingModel.addNegativeExample(java.lang.String t, TimedStroke[] s)
          Add a negative example to this training model for the given type.
 void MSTrainingModel.addPositiveExample(java.lang.String t, TimedStroke[] s)
          Add a positive example to this training model for the given type.
 void MSTrainingModel.addExample(java.lang.String t, TimedStroke[] s, boolean which)
          Add an example to this training model for the given type (either positive or negative, denoted by the "which" argument).
 void MSTrainingModel.removeExample(java.lang.String t, TimedStroke[] s, boolean which)
          Remove the specified example of the given type from this training model.
 void MSTrainingModel.removeNegativeExample(java.lang.String t, TimedStroke[] s)
          Remove the specified negative example of the specified type from this training set.
 void MSTrainingModel.removePositiveExample(java.lang.String t, TimedStroke[] s)
          Remove the specified positive example of the specified type from this training set.
 int HHRecognizer.addAndRetrain(java.lang.String type, TimedStroke[] strokes)
          Add the given shape to the existing training set and retrain the recognizer.
static FeatureSet HHRecognizer.extractFeatures(FeatureExtractor[] extractors, TimedStroke[] strokes)
          Extract features from the given set of strokes.
 RecognitionSet HHRecognizer.strokeStarted(TimedStroke s)
           
 RecognitionSet HHRecognizer.strokeModified(TimedStroke s)
           
 RecognitionSet HHRecognizer.strokeCompleted(TimedStroke s)
           
 RecognitionSet HHRecognizer.sessionCompleted(TimedStroke[] strokes)
          Perform recognition on the given shape.
static TimedStroke[] HHRecognizer.preprocess(TimedStroke[] s, ApproximateStrokeFilter approxFilter, InterpolateStrokeFilter interpFilter, java.awt.geom.AffineTransform at)
          This preprocessing routine normalizes the scaling and the translation of the given shape.
 double[] FeatureExtractor.apply(TimedStroke[] s)
          Return the feature values extracted from the set of strokes.
 

Constructors in hhreco.recognition with parameters of type TimedStroke
TimedStroke(TimedStroke in)
          Copy constructor for efficient copying of TimedStroke
 

Uses of TimedStroke in hhreco.toolbox
 

Methods in hhreco.toolbox that return TimedStroke
abstract  TimedStroke StrokeFilter.apply(TimedStroke s)
          Apply a filtering algorithm on the specified pen stroke and return the filtered stroke.
 TimedStroke InterpolateStrokeFilter.apply(TimedStroke s)
          Interpolate the given stroke such that no 2 consecutive points in the stroke has a distance greater than the pre-defined spacing.
static TimedStroke InterpolateStrokeFilter.interpolate(TimedStroke s)
          Interpolate the points in the given stroke using the default spacing value.
static TimedStroke InterpolateStrokeFilter.interpolate(TimedStroke s, double spacing)
          Interpolate the points in the given stroke using the specified spacing value.
 TimedStroke ApproximateStrokeFilter.apply(TimedStroke s)
          Reduce the number of points in the given pen stroke using the "approximation by line segments" algorithm.
static TimedStroke ApproximateStrokeFilter.approximate(TimedStroke s)
          Reduce the number of points in the given pen stroke using the "approximation by line segments" algorithm.
static TimedStroke ApproximateStrokeFilter.approximate(TimedStroke s, double threshDist)
          Approximate the given stroke using the specified threshold distance.
 

Methods in hhreco.toolbox with parameters of type TimedStroke
static void Util.strokesToArrays(TimedStroke[] strokes, double[][] xvals, double[][] yvals, int[] npoints)
          Store the stroke points in array forms.
static java.awt.geom.Rectangle2D Util.getBounds(TimedStroke[] s)
          Return the bounding box enclosing the set of strokes.
static java.awt.geom.AffineTransform Util.normScaling(TimedStroke[] strokes, double height, double width)
          Scale the set of strokes uniformly (maintaining the aspect ratio).
static double Util.pathLength(TimedStroke s)
          Return the path length of a stroke by enumerating over the points in the stroke and summing up the distances between every two consecutive points.
abstract  TimedStroke StrokeFilter.apply(TimedStroke s)
          Apply a filtering algorithm on the specified pen stroke and return the filtered stroke.
 TimedStroke InterpolateStrokeFilter.apply(TimedStroke s)
          Interpolate the given stroke such that no 2 consecutive points in the stroke has a distance greater than the pre-defined spacing.
static TimedStroke InterpolateStrokeFilter.interpolate(TimedStroke s)
          Interpolate the points in the given stroke using the default spacing value.
static TimedStroke InterpolateStrokeFilter.interpolate(TimedStroke s, double spacing)
          Interpolate the points in the given stroke using the specified spacing value.
 TimedStroke ApproximateStrokeFilter.apply(TimedStroke s)
          Reduce the number of points in the given pen stroke using the "approximation by line segments" algorithm.
static TimedStroke ApproximateStrokeFilter.approximate(TimedStroke s)
          Reduce the number of points in the given pen stroke using the "approximation by line segments" algorithm.
static TimedStroke ApproximateStrokeFilter.approximate(TimedStroke s, double threshDist)
          Approximate the given stroke using the specified threshold distance.