Skip to content

Commit

Permalink
Merge pull request bcaramiaux#21 from bcaramiaux/develop
Browse files Browse the repository at this point in the history
bugs fixed to avoid crashed in mubu.gvf.cpp
  • Loading branch information
bcaramiaux authored May 6, 2021
2 parents 7aeb7f8 + 77a1db1 commit c6e40cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion GVFlib/GVF.cpp
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ void GVF::clear()
{
state = STATE_CLEAR;
gestureTemplates.clear();
activeGestures.clear(); //ISMM
mostProbableIndex = -1;
}

Expand Down Expand Up @@ -194,7 +195,8 @@ void GVF::addGestureTemplate(GVFGesture & gestureTemplate)
gestureTemplates.push_back(gestureTemplate);
activeGestures.push_back(gestureTemplates.size());

if(minRange.size() == 0){
//if(minRange.size() == 0){
if((minRange.size() == 0) || (minRange.size() != inputDimension)){ //ISMM
minRange.resize(inputDimension);
maxRange.resize(inputDimension);
}
Expand Down

0 comments on commit c6e40cd

Please sign in to comment.