You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying the oF example, I noticed the default tolerance is too low to identify a gesture. I tried
void ofApp::setup(){
...
// PARAMETERS are set by default
parameters.numberParticles = 2000; // can be less for low CPU resources
parameters.tolerance = 5.f; // set auto
parameters.resamplingThreshold = 500; // 1/4 of the number of particles
parameters.distribution = 0.0f; // non zero if T-distribution
parameters.phaseVariance = 0.000001; // magic number
parameters.speedVariance = 0.001; // magic number
parameters.scaleVariance = vector<float>(1, 0.00001); // TODO: Check that default works like this.
parameters.rotationVariance = vector<float>(1, 0.00001);
// CREATE the corresponding GVF
gvf.setup(config, parameters);
...
and it seems good enough for recognition.
Another thing is that the above code is too long so that can it be simply done by gvf.setTolerance(float) kind of function? I haven't thoroughly read the code so I'm not sure if individually changing parameters will cause problems or not.
The text was updated successfully, but these errors were encountered:
The value of the tolerance depends on the range of data. For instance, if the incoming data values are between 0.0 and 1.0, atypical tolerance value is 0.2 (20% of the range).
Regarding the code highlighted, I let it like that in order to see the different parameters that can be changed. Indeed there is a function: void setTolerance(float tolerance); in ofxGVF.h
I missed that function 👍
The only issue is setTolerance(float) must be called after setup(ofxGVFConfig) otherwise overwritten by default, which I think is counterintuitive to oF standard
While trying the oF example, I noticed the default tolerance is too low to identify a gesture. I tried
and it seems good enough for recognition.
Another thing is that the above code is too long so that can it be simply done by
gvf.setTolerance(float)
kind of function? I haven't thoroughly read the code so I'm not sure if individually changing parameters will cause problems or not.The text was updated successfully, but these errors were encountered: