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 PixelDifferenceCountErrorMetric,
40 UndefinedErrorMetric = 0,
41 PerceptualHashErrorMetric = 0xff,
44extern MagickExport
double
45 *GetImageChannelDistortions(Image *,
const Image *,
const MetricType,
48extern MagickExport Image
49 *CompareImageChannels(Image *,
const Image *,
const ChannelType,
50 const MetricType,
double *,ExceptionInfo *),
51 *CompareImages(Image *,
const Image *,
const MetricType,
double *,
53 *SimilarityImage(Image *,
const Image *,RectangleInfo *,
double *,
55 *SimilarityMetricImage(Image *,
const Image *,
const MetricType,
56 RectangleInfo *,
double *,ExceptionInfo *);
58extern MagickExport MagickBooleanType
59 GetImageChannelDistortion(Image *,
const Image *,
const ChannelType,
60 const MetricType,
double *,ExceptionInfo *),
61 GetImageDistortion(Image *,
const Image *,
const MetricType,
double *,
63 IsImagesEqual(Image *,
const Image *);
65#if defined(__cplusplus) || defined(c_plusplus)