nickgillian / grt

gesture recognition toolkit
859 stars 285 forks source link

bug in ClassLabelTimeoutFilter #78

Open daniellocust opened 8 years ago

daniellocust commented 8 years ago

In ClassLabelTimeoutFilter::filter function, if the predictedclasslabel equal iter->getClassLabel() and timerReached() is false, filteredClassaLabel will be set to 0, but matchFound does not change. After this, the result will be incorrect, and the post-processing does not work well. So, adding "matchFound = true" after "filterClassLabel = 0;" may fix the bug.