Commit 6f5d9a87 authored by Cristy's avatar Cristy

...

parent faba363a
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment