for (size_t i = 0; i < matches.size(); i++) { if (matches[i].distance < 0.6 * matches[i+1].distance) { good_matches.push_back(matches[i]);