Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bcaramiaux committed Jun 25, 2014
1 parent 74fbf94 commit 017150f
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Compiling both Max/MSP and PureData objects: make sure that in ofxGVFTypes.h you
API
---


ofxGVF object and variables:
```
ofxGVF gvf;
Expand All @@ -32,10 +33,28 @@ ofxGVFParameters parameters;
ofxGVFOutcomes outcomes;
```

CHOICE 1 (automatic parameterization)


From that configuration and parameterization:
```
config.inputDimensions = 2; // in case of a 2-dimensional input data
config.inputDimensions = 2; // in case of a 2-dimensional input data
defaultConfig.translate = true;
defaultConfig.segmentation = false;
```

Then create the object
```
gvf.setup(config);
```

CHOICE 2 (manual parameterization)

From that configuration and parameterization:
```
config.inputDimensions = 2; // in case of a 2-dimensional input data
defaultConfig.translate = true;
defaultConfig.segmentation = false;
parameters.numberParticles = 2000; // can be less for low CPU resources
parameters.tolerance = 0.2f; // set auto
Expand All @@ -52,6 +71,8 @@ Then create the object
gvf.setup(config, parameters);
```



Learning of a gesture template:
```
gvf.setState(ofxGVF::STATE_LEARNING);
Expand Down

0 comments on commit 017150f

Please sign in to comment.