18 #ifndef MAGICKCORE_COMPARE_H
19 #define MAGICKCORE_COMPARE_H
21 #include "magick/image.h"
23 #if defined(__cplusplus) || defined(c_plusplus)
31 MeanAbsoluteErrorMetric,
32 MeanErrorPerPixelMetric,
33 MeanSquaredErrorMetric,
34 PeakAbsoluteErrorMetric,
35 PeakSignalToNoiseRatioMetric,
36 RootMeanSquaredErrorMetric,
37 NormalizedCrossCorrelationErrorMetric,
39 UndefinedErrorMetric = 0,
40 PerceptualHashErrorMetric = 0xff
43 extern MagickExport
double
44 *GetImageChannelDistortions(
Image *,
const Image *,
const MetricType,
47 extern MagickExport
Image
48 *CompareImageChannels(
Image *,
const Image *,
const ChannelType,
50 *CompareImages(
Image *,
const Image *,
const MetricType,
double *,
54 *SimilarityMetricImage(
Image *,
const Image *,
const MetricType,
57 extern MagickExport MagickBooleanType
58 GetImageChannelDistortion(
Image *,
const Image *,
const ChannelType,
60 GetImageDistortion(
Image *,
const Image *,
const MetricType,
double *,
64 #if defined(__cplusplus) || defined(c_plusplus)