© 2006-2007 ETH Zurich

org.ximtec.igesture.algorithm.rubine3d
Class Rubine3DAlgorithm

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

public class Rubine3DAlgorithm
extends SampleBasedAlgorithm


Field Summary
 
Fields inherited from class org.ximtec.igesture.algorithm.DefaultAlgorithm
DEFAULT_CONFIGURATION
 
Constructor Summary
Rubine3DAlgorithm()
          Constructor
 
Method Summary
 Enum<?>[] getConfigParameters()
          Returns an array of containing the configuration parameters.
 String getDefaultParameterValue(String parameterName)
          Returns the value of the default parameter.
 int getType()
          Get the type of algorithm
 void init(Configuration configuration)
          Initialises the algorithm.
 ResultSet recognise(Gesture<?> gesture)
          Recognizes a Gesture
 ResultSet recognise(GestureSample3D gesture)
          Recognizes a GestureSample3D by splitting it up into three 2D-planes (XY, YZ, ZX) and recognising these three 2D planes with the standard RubineAlgorithm.
 
Methods inherited from class org.ximtec.igesture.algorithm.SampleBasedAlgorithm
getSamples
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rubine3DAlgorithm

public Rubine3DAlgorithm()
Constructor

Method Detail

getConfigParameters

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

Returns:
the configuration parameters.

getDefaultParameterValue

public String getDefaultParameterValue(String parameterName)
Description copied from class: DefaultAlgorithm
Returns the value of the default parameter.

Specified by:
getDefaultParameterValue in interface Algorithm
Overrides:
getDefaultParameterValue in class DefaultAlgorithm
Parameters:
parameterName - the name of the parameter whose default value has to be returned.
Returns:
the value of a specific default parameter.

init

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

Parameters:
configuration - the configuration to be used for the initialisation of the algorithm.
Throws:
AlgorithmException - if there is a problem in the algorithm's initialisation phase.

recognise

public ResultSet recognise(Gesture<?> gesture)
                    throws AlgorithmException
Recognizes a Gesture if it is a GestureSample3D, otherwise it throws an AlgorithmException

Parameters:
gesture - the gesture to be recognised.
Returns:
the result set containing the recognised gesture classes.
Throws:
AlgorithmException - if there was an exception while recognising the note.

recognise

public ResultSet recognise(GestureSample3D gesture)
                    throws AlgorithmException
Recognizes a GestureSample3D by splitting it up into three 2D-planes (XY, YZ, ZX) and recognising these three 2D planes with the standard RubineAlgorithm. It returns a combined ResultSet, made up of the three ResultSets of the three planes, combined using weight factors.

Parameters:
gesture - The GestureSample3D to be recognized
Returns:
The ResultSet after recognising the gesture
Throws:
AlgorithmException

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.