]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 30 Mar 2013 19:59:41 +0000 (19:59 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 30 Mar 2013 19:59:41 +0000 (19:59 +0000)
tests/validate.c

index 6f8a128177305634d3cc0c21f098394239c273f4..9a562ccf68269e8fbfeb4d6680aa2cc6bb4e8395 100644 (file)
@@ -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);