From: Cristy Date: Sat, 18 Nov 2017 13:12:17 +0000 (-0500) Subject: Correct fuzz distance algorithm to ensure expected results X-Git-Tag: 7.0.7-12~76 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed4691ff366c508e88bb84cd2af22e381899e0a6;p=imagemagick Correct fuzz distance algorithm to ensure expected results --- diff --git a/MagickCore/compare.c b/MagickCore/compare.c index beaf119ef..96a104518 100644 --- a/MagickCore/compare.c +++ b/MagickCore/compare.c @@ -384,6 +384,7 @@ static MagickBooleanType GetAbsoluteDistortion(const Image *image, */ status=MagickTrue; fuzz=GetFuzzyColorDistance(image,reconstruct_image); + fuzz*=fuzz; rows=MagickMax(image->rows,reconstruct_image->rows); columns=MagickMax(image->columns,reconstruct_image->columns); image_view=AcquireVirtualCacheView(image,exception);