def match_to_dict(match):
    """
    convert cv2.DMatch to a dict
    """
    # not using match.imgIdx
    return dict(
        idx1=match.queryIdx,
        idx2=match.trainIdx,
        distance=match.distance,
    )