#don't throw anything out, just have dataframes and masks
#TODO: decide on a consistent mask format to output. Do we want to also accept existing masks and just mask more things?
classMatchOutlierDetector(object):
"""
Documentation
"""
def__init__(self):
self.ratio=0.8# Lowe's paper value -- can be changed.
self.distance_epsilon=0.000001#maybe another way to filter self-neighbors
# return mask with self-neighbors set to zero. (query only takes care of literal self-matches on a keypoint basis, not self-matches for the whole image)
# matches: a dataframe
# source_node: a string with the name of the node that was just matched.
#TODO: turn this into a mask-style thing. just returns a mask of bad values