From 2c05d5de0c114da7e10c00f3bfd60974c447f999 Mon Sep 17 00:00:00 2001 From: cristy Date: Sat, 16 Jun 2012 19:22:05 +0000 Subject: [PATCH] --- tests/validate.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/validate.c b/tests/validate.c index fc5aaa1f6..d3ca080d9 100644 --- a/tests/validate.c +++ b/tests/validate.c @@ -50,6 +50,11 @@ #include "MagickCore/string-private.h" #include "validate.h" +/* + Define declarations. +*/ +#define DistortionEpsilon ((MagickRealType) 1.0e-5) + /* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % @@ -633,7 +638,7 @@ static size_t ValidateImageFormatsInMemory(ImageInfo *image_info, #endif if (IssRGBColorspace(reference_image->colorspace) == MagickFalse) fuzz+=0.3; - fuzz+=MagickEpsilon; + fuzz+=DistortionEpsilon; difference_image=CompareImages(reference_image,reconstruct_image, MeanSquaredErrorMetric,&distortion,exception); reconstruct_image=DestroyImage(reconstruct_image); @@ -845,7 +850,7 @@ static size_t ValidateImageFormatsOnDisk(ImageInfo *image_info, #endif if (IssRGBColorspace(reference_image->colorspace) == MagickFalse) fuzz+=0.3; - fuzz+=MagickEpsilon; + fuzz+=DistortionEpsilon; difference_image=CompareImages(reference_image,reconstruct_image, MeanSquaredErrorMetric,&distortion,exception); reconstruct_image=DestroyImage(reconstruct_image); -- 2.50.1