diva.sketch.toolbox
Class ScribbleRecognizer

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

public class ScribbleRecognizer
extends Object
implements StrokeRecognizer

A recognizer that recognizes scribble shapes: /\/\/\/\

Version:
$Revision: 1.10 $
Author:
Heloise Hse (hwawen@eecs.berkeley.edu), Michael Shilman (michaels@eecs.berkeley.edu)

Field Summary
static String SCRIBBLE_TYPE_ID
          The type ID that is used when scribble objects are recognized.
 
Constructor Summary
ScribbleRecognizer()
           
 
Method Summary
 RecognitionSet strokeCompleted(TimedStroke s)
          Compute the ratio of the sum of the absolute values of the delta y's and the sum of the absolute values of the delta x's, the aspect ratio, and the number of corners.
 RecognitionSet strokeModified(TimedStroke s)
          Return NO_RECOGNITION; this recognizer is not incremental.
 RecognitionSet strokeStarted(TimedStroke s)
          Return NO_RECOGNITION; this recognizer is not incremental.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCRIBBLE_TYPE_ID

public static final String SCRIBBLE_TYPE_ID
The type ID that is used when scribble objects are recognized.

See Also:
Constant Field Values
Constructor Detail

ScribbleRecognizer

public ScribbleRecognizer()
Method Detail

strokeCompleted

public RecognitionSet strokeCompleted(TimedStroke s)
Compute the ratio of the sum of the absolute values of the delta y's and the sum of the absolute values of the delta x's, the aspect ratio, and the number of corners. These are used to determine the scribble confidence value for the gesture.

Specified by:
strokeCompleted in interface StrokeRecognizer

strokeModified

public RecognitionSet strokeModified(TimedStroke s)
Return NO_RECOGNITION; this recognizer is not incremental.

Specified by:
strokeModified in interface StrokeRecognizer

strokeStarted

public RecognitionSet strokeStarted(TimedStroke s)
Return NO_RECOGNITION; this recognizer is not incremental.

Specified by:
strokeStarted in interface StrokeRecognizer


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