diva.sketch.toolbox
Class RetypingRecognizer

java.lang.Object
  extended by diva.sketch.toolbox.RetypingRecognizer
All Implemented Interfaces:
StrokeRecognizer

public class RetypingRecognizer
extends Object
implements StrokeRecognizer

FIXME

Version:
$Revision: 1.3 $
Author:
Michael Shilman (michaels@eecs.berkeley.edu)

Constructor Summary
RetypingRecognizer(StrokeRecognizer llr)
          Construct a filter recognizer which uses the given recognizer to perform its low-level recognition.
 
Method Summary
 void addAllowedType(String allowedType)
          Add a type that is allowed through by this filter recognizer.
 void addAllowedType(String allowedType, String mappedType)
          Add a type that is allowed through by this filter recognizer.
protected  RecognitionSet filterTypes(RecognitionSet in)
          Take a recognition set generated by the LLR and see whether or not it contains some allowed types with non-zero confidences.
 void removeAllowedType(String typeID)
          Remove a type that is allowed through by this filter recognizer.
 RecognitionSet strokeCompleted(TimedStroke s)
          Perform filtered recognition based on the LLR's recognition on the stroke.
 RecognitionSet strokeModified(TimedStroke s)
          Perform filtered recognition based on the LLR's recognition on the stroke.
 RecognitionSet strokeStarted(TimedStroke s)
          Perform filtered recognition based on the LLR's recognition on the stroke.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetypingRecognizer

public RetypingRecognizer(StrokeRecognizer llr)
Construct a filter recognizer which uses the given recognizer to perform its low-level recognition.

Method Detail

addAllowedType

public void addAllowedType(String allowedType,
                           String mappedType)
Add a type that is allowed through by this filter recognizer. FIXME


addAllowedType

public void addAllowedType(String allowedType)
Add a type that is allowed through by this filter recognizer. FIXME


filterTypes

protected RecognitionSet filterTypes(RecognitionSet in)
Take a recognition set generated by the LLR and see whether or not it contains some allowed types with non-zero confidences. If so, return a RecognitionSet that contains the recognitions of these allowed types. If not, return NO_RECOGNITION.


removeAllowedType

public void removeAllowedType(String typeID)
Remove a type that is allowed through by this filter recognizer.


strokeCompleted

public RecognitionSet strokeCompleted(TimedStroke s)
Perform filtered recognition based on the LLR's recognition on the stroke.

Specified by:
strokeCompleted in interface StrokeRecognizer

strokeModified

public RecognitionSet strokeModified(TimedStroke s)
Perform filtered recognition based on the LLR's recognition on the stroke.

Specified by:
strokeModified in interface StrokeRecognizer

strokeStarted

public RecognitionSet strokeStarted(TimedStroke s)
Perform filtered recognition based on the LLR's recognition on the stroke.

Specified by:
strokeStarted in interface StrokeRecognizer


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.