From ed4691ff366c508e88bb84cd2af22e381899e0a6 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 18 Nov 2017 08:12:17 -0500 Subject: [PATCH] Correct fuzz distance algorithm to ensure expected results --- MagickCore/compare.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.40.0