Skip to content
Baptiste Caramiaux edited this page Oct 2, 2013 · 28 revisions

Welcome to the gvf wiki!

Using the library

Here we give a quick tutorial to use the C++ library provided in the repository.

Version using parameters

The construction of a GestureVariationFollower object requires a certain number of parameters. This page tries to help the interested programmer in choosing the parameters for given input data.

Methods

Construct a GestureVariationFollower object:
GestureVariationFollower* myGvf = new GestureVariationFollower(ns, sigs, icov, resThresh, nu);

Learning. For each new template to be added to the vocabulary:
myGvf->addTemplate();
For each new incoming data vector data [type vector<float>] of a template N [type: int]:
myGvf->fillTemplate(N, data);

Following. At the beginning of each new gesture (first point of a gesture), restart the GVF by spreading particles:
myGvf->spreadParticles(means, ranges);
For each new live gesture data vector livedata [type vector<float>]:
myGvf->infer(livedata);

Parameters

Constructor:

  • ns: number of particles (~100/template)
  • sigs
  • icov: default value at 1/(0.04) for data between 0 and 1
  • resThresh = ns/5
  • nu = 0.

Spreading particles:

  • means
  • ranges

Version using default parameters

Not committed yet, in progress ...

Clone this wiki locally