| 
    GECKO 1.0 
   Human-computer interface based on hand gesture recognition 
   | 
 
 Update the state of the state machine according to the current value passed to it. 
 {
    if ( current_value == value_to_track )
    {
        if ( current_positive_matches < min_positive_matches)
            current_positive_matches++;
        current_negative_matches = 0;
    }
    else
    {
        if ( current_negative_matches < max_negative_matches)
            current_negative_matches++;
    }
    if ( current_positive_matches == min_positive_matches )
        found = true;
    if ( current_negative_matches == max_negative_matches )
    {
        reset();
    }
}
Here is the call graph for this function: 
![]()  | 
  
 1.7.4