]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sat, 26 Aug 2017 18:03:14 +0000 (14:03 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 26 Aug 2017 18:03:14 +0000 (14:03 -0400)
MagickWand/compare.c

index 1640ccc33fb018bd22c0ff8b224f3ecd6cd47129..5181dbc74ffeefcf57d1d9f3a089b50866a080ed 100644 (file)
@@ -1151,16 +1151,8 @@ WandExport MagickBooleanType CompareImagesCommand(ImageInfo *image_info,
       exception);
   else
     if (similarity_image == (Image *) NULL)
-      {
-        if ((metric == PerceptualHashErrorMetric) ||
-            (metric == StructuralSimilarityErrorMetric) ||
-            (metric == StructuralDissimilarityErrorMetric))
-          difference_image=CompareImages(image,reconstruct_image,metric,
-            &distortion,exception);
-        else
-          ThrowCompareException(OptionError,"ImageWidthsOrHeightsDiffer",
-            image->filename);
-      }
+      difference_image=CompareImages(image,reconstruct_image,metric,&distortion,
+        exception);
     else
       {
         Image