From 93540abc1bce255b53806eb43f37362281968d66 Mon Sep 17 00:00:00 2001 From: cristy Date: Sat, 30 Mar 2013 19:59:41 +0000 Subject: [PATCH] --- tests/validate.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tests/validate.c b/tests/validate.c index 6f8a12817..9a562ccf6 100644 --- a/tests/validate.c +++ b/tests/validate.c @@ -646,10 +646,9 @@ static size_t ValidateImageFormatsInMemory(ImageInfo *image_info, /* Compare reference to reconstruct image. */ - fuzz=0.0; + fuzz=0.003; /* grayscale */ if (reference_formats[i].fuzz != 0.0) fuzz=reference_formats[i].fuzz; - fuzz+=0.003; /* grayscale */ difference_image=CompareImages(reference_image,reconstruct_image, RootMeanSquaredErrorMetric,&distortion,exception); reconstruct_image=DestroyImage(reconstruct_image); @@ -864,15 +863,9 @@ static size_t ValidateImageFormatsOnDisk(ImageInfo *image_info, /* Compare reference to reconstruct image. */ - fuzz=0.0; + fuzz=0.003; /* grayscale */ if (reference_formats[i].fuzz != 0.0) fuzz=reference_formats[i].fuzz; -#if defined(MAGICKCORE_HDRI_SUPPORT) - fuzz+=0.003; -#endif - if (IssRGBColorspace(reference_image->colorspace) == MagickFalse) - fuzz+=0.3; - fuzz+=2.31365e-06; difference_image=CompareImages(reference_image,reconstruct_image, RootMeanSquaredErrorMetric,&distortion,exception); reconstruct_image=DestroyImage(reconstruct_image); -- 2.40.0