#include "MagickCore/string-private.h"
#include "validate.h"
\f
-/*
- Define declarations.
-*/
-#define DistortionEpsilon ((MagickRealType) 1.0e-5)
-\f
/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
#endif
if (IssRGBColorspace(reference_image->colorspace) == MagickFalse)
fuzz+=0.3;
- fuzz+=DistortionEpsilon;
+ fuzz+=MagickEpsilon;
difference_image=CompareImages(reference_image,reconstruct_image,
- MeanSquaredErrorMetric,&distortion,exception);
+ RootMeanSquaredErrorMetric,&distortion,exception);
reconstruct_image=DestroyImage(reconstruct_image);
reference_image=DestroyImage(reference_image);
if (difference_image == (Image *) NULL)
#endif
if (IssRGBColorspace(reference_image->colorspace) == MagickFalse)
fuzz+=0.3;
- fuzz+=DistortionEpsilon;
+ fuzz+=MagickEpsilon;
difference_image=CompareImages(reference_image,reconstruct_image,
- MeanSquaredErrorMetric,&distortion,exception);
+ RootMeanSquaredErrorMetric,&distortion,exception);
reconstruct_image=DestroyImage(reconstruct_image);
reference_image=DestroyImage(reference_image);
if (difference_image == (Image *) NULL)
Compare reference to reconstruct image.
*/
difference_image=CompareImages(reference_image,reconstruct_image,
- MeanSquaredErrorMetric,&distortion,exception);
+ RootMeanSquaredErrorMetric,&distortion,exception);
reconstruct_image=DestroyImage(reconstruct_image);
reference_image=DestroyImage(reference_image);
if (difference_image == (Image *) NULL)