diva.sketch.toolbox
Class LLRSceneRecognizer

java.lang.Object
  extended by diva.sketch.toolbox.LLRSceneRecognizer
All Implemented Interfaces:
SceneRecognizer

public class LLRSceneRecognizer
extends Object
implements SceneRecognizer

A scene recognizer that groups the highest-confidence LLR results into a single tree with 100% confidence.

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

Constructor Summary
LLRSceneRecognizer(StrokeSceneRecognizer llr)
          Construct a scene recognizer using the given scene recognizer to perform single-stroke recognition.
 
Method Summary
 SceneDeltaSet sessionCompleted(StrokeElement[] session, Scene db)
          Call the child recognizer and add the results, if any, to the given scene database.
 SceneDeltaSet strokeCompleted(StrokeElement se, Scene db)
          Call the child recognizer and add the results, if any, to the given scene database.
 SceneDeltaSet strokeModified(StrokeElement se, Scene db)
          Call the child recognizer and add the results, if any, to the given scene database.
 SceneDeltaSet strokeStarted(StrokeElement se, Scene db)
          Call the child recognizer and add the results, if any, to the given scene database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LLRSceneRecognizer

public LLRSceneRecognizer(StrokeSceneRecognizer llr)
Construct a scene recognizer using the given scene recognizer to perform single-stroke recognition.

Method Detail

strokeCompleted

public SceneDeltaSet strokeCompleted(StrokeElement se,
                                     Scene db)
Call the child recognizer and add the results, if any, to the given scene database.

Specified by:
strokeCompleted in interface SceneRecognizer

strokeModified

public SceneDeltaSet strokeModified(StrokeElement se,
                                    Scene db)
Call the child recognizer and add the results, if any, to the given scene database.

Specified by:
strokeModified in interface SceneRecognizer

strokeStarted

public SceneDeltaSet strokeStarted(StrokeElement se,
                                   Scene db)
Call the child recognizer and add the results, if any, to the given scene database.

Specified by:
strokeStarted in interface SceneRecognizer

sessionCompleted

public SceneDeltaSet sessionCompleted(StrokeElement[] session,
                                      Scene db)
Call the child recognizer and add the results, if any, to the given scene database. If the session contains more than one stroke, call the child recognizer for each stroke in the session. (FIXME: does this make sense?)

Specified by:
sessionCompleted in interface SceneRecognizer


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