GECKO 1.0
Human-computer interface based on hand gesture recognition
StateMachine::StateMachine ( int  value_to_track,
unsigned int  min_positive_matches,
unsigned int  max_negative_matches 
)

StateMachine constructor.

Parameters:
value_to_trackValue to track for the positive matches
min_positive_matchesMinimum number of coincidences with the value to track before it considers it has been found
max_negative_matchesMaximum number of negative matches allowed between two positive matches
{
    this->value_to_track = value_to_track;
    this->min_positive_matches = positive_matches;
    this->max_negative_matches = negative_matches;

    current_positive_matches = 0;
    current_negative_matches = 0;
    found = false;
}
 All Classes Functions Variables