maxfuse.utils.filter_bad_matches

maxfuse.utils.filter_bad_matches(matching, filter_prop=0.1)[source]

Filter bad matches according to the distances of matched pairs.

Parameters:
  • matching (list) – rows, cols, vals = init_matching, where each matched pair is (rows[i], cols[i]), and their distance is vals[i]

  • filter_prop (float) – Matched pairs with distance in top filter_prop are discarded

Returns:

rows, cols, vals (list) – Each matched pair of rows[i], cols[i], their distance is vals[i]