18#ifndef MAGICKCORE_COMPARE_H
19#define MAGICKCORE_COMPARE_H
21#include "magick/image.h"
23#if defined(__cplusplus) || defined(c_plusplus)
27#define MagickPSNRDistortion (10.0*log10(1.0/MagickEpsilon))
33 MeanAbsoluteErrorMetric,
34 MeanErrorPerPixelMetric,
35 MeanSquaredErrorMetric,
36 PeakAbsoluteErrorMetric,
37 PeakSignalToNoiseRatioMetric,
38 RootMeanSquaredErrorMetric,
39 NormalizedCrossCorrelationErrorMetric,
41 UndefinedErrorMetric = 0,
42 PerceptualHashErrorMetric = 0xff
45extern MagickExport
double
46 *GetImageChannelDistortions(Image *,
const Image *,
const MetricType,
49extern MagickExport Image
50 *CompareImageChannels(Image *,
const Image *,
const ChannelType,
51 const MetricType,
double *,ExceptionInfo *),
52 *CompareImages(Image *,
const Image *,
const MetricType,
double *,
54 *SimilarityImage(Image *,
const Image *,RectangleInfo *,
double *,
56 *SimilarityMetricImage(Image *,
const Image *,
const MetricType,
57 RectangleInfo *,
double *,ExceptionInfo *);
59extern MagickExport MagickBooleanType
60 GetImageChannelDistortion(Image *,
const Image *,
const ChannelType,
61 const MetricType,
double *,ExceptionInfo *),
62 GetImageDistortion(Image *,
const Image *,
const MetricType,
double *,
64 IsImagesEqual(Image *,
const Image *);
66#if defined(__cplusplus) || defined(c_plusplus)