def compare(self, image, metric='undefined'):
        if not isinstance(metric, string_type):
            raise TypeError('metric must be a string, not ' + repr(metric))

        metric = COMPARE_METRICS.index(metric)
        distortion = ctypes.c_double()
        compared_image = library.MagickCompareImages(self.wand, image.wand,
                                                     metric,
                                                     ctypes.byref(distortion))
        return Image(BaseImage(compared_image)), distortion.value
Compares an image to a reconstructed image.
dataset/ETHPy150Open dahlia/wand/wand/image.py/BaseImage.compare