/* Change Threshold helper */ void thresholdChange(string input, FaceDetector detect) { size_t pos; int crMin, crMax, cbMin, cbMax; cout<< "Please input crMin" << endl; getline(cin, input); crMin = stoul(input, &pos, 10); cout<< "Please input crMax" << endl; getline(cin, input); crMax = stoul(input, &pos, 10); cout<< "Please input cbMin" << endl; getline(cin, input); cbMin = stoul(input, &pos, 10); cout<< "Please input cbMax" << endl; getline(cin, input); cbMax = stoul(input, &pos, 10); /* OBSERVATIONS yMin and yMax do not seem to make much of a difference */ detect.thresholdChange(0, 255, crMin, crMax, cbMin, cbMax); }