'Get a list of coordinates matching the morphological operation on
an image.
Returns a list of tuples of (x,y) coordinates
of all matching pixels.'

def match(self, image):

    if (self.lut is None):
        raise Exception('No    operator    loaded')
    if (image.mode != 'L'):
        raise Exception('Image    must    be    binary,    meaning    it    must    use    mode    L')
    return _imagingmorph.match(bytes(self.lut), image.im.id)
