© 2006-2007 ETH Zurich

org.ximtec.igesture.algorithm.signature
Class SiGridAlgorithm

java.lang.Object
  extended by org.ximtec.igesture.algorithm.DefaultAlgorithm
      extended by org.ximtec.igesture.algorithm.SampleBasedAlgorithm
          extended by org.ximtec.igesture.algorithm.signature.SiGridAlgorithm
All Implemented Interfaces:
Algorithm

public class SiGridAlgorithm
extends SampleBasedAlgorithm

Implementation of the signature algorithm.

Version:
1.0 Dec 2006
Author:
Ueli Kurmann, igesture@uelikurmann.ch, Beat Signer, signer@inf.ethz.ch

Nested Class Summary
static class SiGridAlgorithm.Config
           
 
Field Summary
 
Fields inherited from class org.ximtec.igesture.algorithm.DefaultAlgorithm
DEFAULT_CONFIGURATION
 
Constructor Summary
SiGridAlgorithm()
           
 
Method Summary
 Enum[] getConfigParameters()
          Returns an array of containing the configuration parameters.
 int getType()
          Get the type of algorithm
 void init(Configuration config)
          Initialises the algorithm.
 void preprocess(GestureSet gestureSet)
          Creates sample signatures.
 ResultSet recognise(Gesture<?> gesture)
          Runs the recogniser on a given set of strokes represented by a gesture.
 
Methods inherited from class org.ximtec.igesture.algorithm.SampleBasedAlgorithm
getSamples
 
Methods inherited from class org.ximtec.igesture.algorithm.DefaultAlgorithm
getDefaultParameterValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiGridAlgorithm

public SiGridAlgorithm()
Method Detail

init

public void init(Configuration config)
Description copied from interface: Algorithm
Initialises the algorithm.

Parameters:
config - the configuration to be used for the initialisation of the algorithm.

preprocess

public void preprocess(GestureSet gestureSet)
Creates sample signatures.

Parameters:
gestureSet - the gesture set.

recognise

public ResultSet recognise(Gesture<?> gesture)
Description copied from interface: Algorithm
Runs the recogniser on a given set of strokes represented by a gesture.

Parameters:
gesture - the gesture to be recognised.
Returns:
the result set containing the recognised gesture classes.

getConfigParameters

public Enum[] getConfigParameters()
Description copied from interface: Algorithm
Returns an array of containing the configuration parameters.

Returns:
the configuration parameters.

getType

public int getType()
Description copied from interface: Algorithm
Get the type of algorithm

See Also:
Constant

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.